naresh athmakuri

naresh athmakuri

  • 1.8k
  • 43
  • 748

how to validate a file exists or not in asp.net using C#

Aug 11 2019 1:53 AM
I tried the below one
 
string path=txtPath.Text;
bool isExists=File.Exists(path);
 
it is working fine in my local system but when i am sharing with network it is returning fals
can you please suggest me what is the best way to validate path will work in all cases
thank you

Answers (5)