private void BindData() { DropDownList_Template.DataSource = TemplateControler.GetTemplateList(PageCategory.SalesPage); DropDownList_Template.DataTextField = "name"; DropDownList_Template.DataValueField = "fullname"; DropDownList_Template.DataBind(); }
private void BindData() { PageModel page = PageControler.GetModel(PageID); DropDownList_Template.DataSource = TemplateControler.GetTemplateList(PageCategory.HelpCenter); DropDownList_Template.DataTextField = "name"; DropDownList_Template.DataValueField = "fullname"; DropDownList_Template.DataBind(); DropDownList_Template.SelectedValue = page.TempatePath; TextBox_PageName.Text = page.PageName; TextBox_PageTitle.Text = page.PageTitle; }