Check Existence of File in ASP.NET and C#
We have to check if file exists before doing some things with that particular file. It will prevent error and work flow will be smooth, for this we have to include required namespace i.e system.IO;
Using system.IO;
We have to place these controls on the webpage (ASPX page)
Text box with ID=Textbox1
Button with ID= button1
Label with ID= label1
- Read more about Check Existence of File in ASP.NET and C#
- Log in or register to post comments
- 69 views