public void LoadDropDownList() { DataTable dt = new DataTable(); dt = bus.getAllCategory(); DropDownList1.DataSource = dt; DropDownList1.DataTextField = "CategoryName"; DropDownList1.DataValueField = "CategoryID"; DropDownList1.DataBind(); }
public void LoadDropDownList() { DataTable dt = new DataTable(); dt = bus.getAllCategory(); DropDownList1.DataSource = dt; DropDownList1.DataTextField = "CategoryName"; DropDownList1.DataValueField = "CategoryID"; DropDownList1.DataBind(); }