Esempio n. 1
0
 void Showcb()
 {
     DropDownList1.DataSource     = L.ShowCategory();
     DropDownList1.DataTextField  = "CategoryName";
     DropDownList1.DataValueField = "CategoryID";
     DataBind();
 }
Esempio n. 2
0
 public void loadloai()
 {
     ddrMaloai.DataSource     = bus.ShowCategory();
     ddrMaloai.DataTextField  = "CategoryName";
     ddrMaloai.DataValueField = "CategoryID";
     ddrMaloai.DataBind();
 }
Esempio n. 3
0
        public void LoadDrop()
        {
            DropDownList1.DataSource     = bus.ShowVendor();
            DropDownList1.DataTextField  = "VendorName";
            DropDownList1.DataValueField = "VendorID";
            DropDownList1.DataBind();

            DropDownList2.DataSource     = bus.ShowCategory();
            DropDownList2.DataTextField  = "CategoryName";
            DropDownList2.DataValueField = "CategoryID";
            DropDownList2.DataBind();
        }