5
Answers

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

Guest User

Guest User

5y
1.6k
1
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)