file exists check
client side local path how to check ? my application in server ....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dhanunjay JajimogglaPosted Jun 17, 2014, 9:01 AM
Follow below steps :
1. Read your client path to .cs page
2. Here prepare path for your file like below
Example :
string Serverpath = @"C:\upload";
string ClientsideFilename = "Example.txt";
string FinalPath = Serverpath + Clientside File name;
if(File.Exits(FinalPath))
{
//write your logic
}
else
{
//write your logic
}