private void BindDDLList() { ddlType.DataSource = bllCategory.GetAllChildByCode("wzyh"); ddlType.DataTextField = "title"; ddlType.DataValueField = "codeNo"; ddlType.DataBind(); }
public void InitData() { string code = Request.QueryString["code"]; if (!string.IsNullOrEmpty(code)) { model = bll.GetModel(StringUtil.CheckStr(code)); if (model != null) { DataTable dt = bll.GetAllChildByCode(model.codeNo).Tables[0]; lblTitle.Text = model.title; txtContent.Value = model.description; hdfID.Value = model.id + ""; } } }