Click here to Skip to main content
15,672,471 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends

i want to check the given file is exist on server or not??

any help ?

thanks in advance
Updated 21-Jun-11 3:16am
Brij 21-Jun-11 9:18am    
Are you trying from codebehind? do you have the path of file?

ASP.NET is purely webbased (always it checks on server path). You can dierectly check file on specified path.
if (System.IO.File.Exist(\\File path))<br />
      {<br />
         //Code<br />
      }<br />
Share this answer
guptaadeepak 21-Jun-11 9:17am    
thanks buddy
koolprasad2003 21-Jun-11 9:21am    
If your problem get solved then mark the problem as SOLVED and accept solution.

- Happy coding
first store the given file STRING in a string variable then get the data from the server table in a DATATABLE the compare given string with the got table column strings...
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900