Exemplo n.º 1
0
 private void BindDDLList()
 {
     ddlType.DataSource     = bllCategory.GetAllChildByCode("wzyh");
     ddlType.DataTextField  = "title";
     ddlType.DataValueField = "codeNo";
     ddlType.DataBind();
 }
Exemplo n.º 2
0
    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 + "";
            }
        }
    }