Page.MapPath
try { FileInfo myFile= new FileInfo(MapPath(".") + "\\" + yourfilename); if (myFile.Exists) { File.Delete(MapPath(".") + "\\" + yourfilename); } else { throw new FileNotFoundException(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)