if (System.IO.File.Exists(HttpContext.Current.Server.MapPath("Images/filename.jpg")))
{
System.IO.File.Delete(HttpContext.Current.Server.MapPath("Images/filename.jpg"));
Response.Write("file deleted");
}
{
System.IO.File.Delete(HttpContext.Current.Server.MapPath("Images/filename.jpg"));
Response.Write("file deleted");
}
No comments:
Post a Comment