How can I check whether the file exists?

For all the File manipulation function the namespace System.IO; has to be included. The existence of a file can be checked by the following syntax , File.Exists(path); where path is the path of the file name. The code can be as. if(File.Exists(‘C:\\dict.txt’)) { Response.Write(‘File Exists’); } else { Response.Write(‘File Not Found’); }

How can I include file through the ASPX?

The files can be included by the following syntax <!–include file=’filename’–> <table> <tr> <td> <!–#include file=’sample.html’–> </td> </tr> </table> Now the sample.htm will be displayed in the aspx page.