Beispiel #1
0
    //会员组等下拉框绑定
    private void DPBind()
    {
        DataTable dt = groupBll.GetGroupList();

        UserGroup_DP.DataSource = dt;
        UserGroup_DP.DataBind();
        SelectGroup.DataSource = dt;//数据绑定
        SelectGroup.DataBind();
        this.SelectGroup.Items.Insert(0, new ListItem("选择等级", "0"));
        ddlGroup.DataSource = dt;
        ddlGroup.DataBind();
    }
        //会员组等下拉框绑定
        private void DPBind()
        {
            DataTable dt = groupBll.GetGroupList();

            UserGroup_DP.DataSource = dt;
            UserGroup_DP.DataBind();
            SelectGroup.DataSource = dt;//数据绑定
            SelectGroup.DataBind();
            SelectGroup.Items.Insert(0, new ListItem(Resources.L.择等级, "0"));
            ddlGroup_DP.DataSource = dt;
            ddlGroup_DP.DataBind();
            ddlGroup_DP.Items.Insert(0, new ListItem(Resources.L.全部会员, "0"));
        }