try { //System.IO.File.Delete(@"E:\sasi\ss"); string path = @"e:\sasi\delt.doc"; FileInfo myfileinf = new FileInfo(path); myfileinf.Delete(); Response.Write("<script>alert('deleted')</script>"); } catch (Exception ex) { Label l = new Label(); l.Text = ex.Message; Form.Controls.Add(l); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)