Example #1
0
        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();
        }
Example #2
0
        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));
        }