private void OnSaveTitleClick(object sender, EventArgs e) { LinkButton linkButton = sender as LinkButton; Guid pageId = new Guid(linkButton.CommandArgument); var page = Pages.Find(x => x.PAG_ID == pageId); page.PAG_Title = ((TextBox)this.FindControl("TxtPageTitle_" + pageId)).Text; WDC.SubmitChanges(); LoadTabBar(); }
private void OnPageDeleteClick(object sender, EventArgs e) { LinkButton linkButton = sender as LinkButton; Guid pageId = new Guid(linkButton.CommandArgument); var page = Pages.Find(x => x.PAG_ID == pageId); WDC.hitbl_Page_PAGs.DeleteOnSubmit(page); WDC.SubmitChanges(); Response.Redirect(GetFriendlyPageLink(1)); }