Exemplo n.º 1
0
        private void BindTypeDp()
        {
            UserRegisterBusiness userReg = new UserRegisterBusiness();
            DataSet articleTypeDs        = userReg.GetArticleType();

            DropDownList1.DataSource     = articleTypeDs;
            DropDownList1.DataTextField  = "TypeName";
            DropDownList1.DataValueField = "TypeId";
            DropDownList1.DataBind();
        }