File exists check
client side local path how to check ? my application in server ....
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dhanunjay Jajimoggla100 reputationPosted Jun 17, 2014, 5:01 AM EDT
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
}