Esempio n. 1
0
        public void LoadDropDownList()
        {
            DataTable dt = new DataTable();

            dt = bus.getAllCategory();
            DropDownList1.DataSource     = dt;
            DropDownList1.DataTextField  = "CategoryName";
            DropDownList1.DataValueField = "CategoryID";
            DropDownList1.DataBind();
        }