public void DeletePage(string PageName) { try { string path = Path.Combine(WebContext.Server.MapPath(WebContext.StartDir), ConfigCte.StaticContentFolder); path = Path.Combine(path, PageName.Trim() + ".htm"); if (File.Exists(path)) { File.Delete(path); } PagesDS.PagesRow row = GetPage(PageName); if (row.Table.Rows.Count > 0) { row.Delete(); row.Table.AcceptChanges(); AcceptChanges(); } } catch (Exception ex) { } }