sir,
how can i delete file/image from web server folder using c#.net.
protected void Delete_File(object sender, EventArgs e) { string filePath = Server.MapPath("~/Uploads/" + "Test.txt"); if (System.IO.File.Exists(filePath)) { System.IO.File.Delete(filePath); } }
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.