try { // A. // Try to delete the file. File.Delete(f); return true; } catch (IOException) { // B. // We couldn't delete the file. return false; }
File.Delete(Server.MapPath("~/YourFolder/" + FileName.Text));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)