示例#1
0
        private void loadCustomPage(string url)
        {
            CustomPageBL customPageBL = new CustomPageBL();
            CustomPage   customPage   = customPageBL.GetCustomPage(url);

            Page.Title = customPage.Title;
            ViewState.Add("pageTitle", customPage.Title);
            lblHeading.Text            = customPage.Heading;
            divContent.InnerHtml       = customPage.Content;
            ViewState["customPageUrl"] = customPage.Url;
        }
示例#2
0
        private void loadCustomPage(int customPageID)
        {
            CustomPageBL customPageBL = new CustomPageBL();
            CustomPage   customPage   = customPageBL.GetCustomPage(customPageID);

            txtTitle.Text       = customPage.Title;
            txtDescription.Text = customPage.Description;
            txtUrl.Text         = customPage.Url;
            txtHeading.Text     = customPage.Heading;
            txtHead.Text        = customPage.Head;
            txtInsertDate.Text  = customPage.InsertDate.ToString();
            txtUpdateDate.Text  = customPage.UpdateDate.ToString();
            txtContent.Text     = customPage.Content;
            ViewState.Add("customPageID", customPage.CustomPageID);
            lblTitleHeading.Text = customPage.Heading;
            ViewState.Add("pageTitle", customPage.Title);
            chkIsActive.Checked = customPage.IsActive;
            cmbCustomPageCategory.SelectedValue = customPage.CustomPageCategoryID.ToString();
        }