protected void FillDropDownList() { CompanyManger company = new CompanyManger(); DropDownCompanyList.DataSource = company.GetAllCompany(); DropDownCompanyList.DataTextField = "CompanyName"; DropDownCompanyList.DataValueField = "CompanyID"; DropDownCompanyList.DataBind(); DropDownCompanyList.Items.Insert(0, new ListItem("Select", "0")); }
protected void FillDropDownList() { DropDownCategoryList.DataSource = itemManger.GetAllCategory(); DropDownCategoryList.DataTextField = "CategoryName"; DropDownCategoryList.DataValueField = "CategoryID"; DropDownCategoryList.DataBind(); DropDownCategoryList.Items.Insert(0, new ListItem("Select", "0")); DropDownCompanyList.DataSource = itemManger.GetAllCompany(); DropDownCompanyList.DataTextField = "CompanyName"; DropDownCompanyList.DataValueField = "CompanyID"; DropDownCompanyList.DataBind(); DropDownCompanyList.Items.Insert(0, new ListItem("Select", "0")); }
protected void FillDropDownList() { CompanyManger company = new CompanyManger(); DropDownCompanyList.DataSource = company.GetAllCompany(); DropDownCompanyList.DataTextField = "CompanyName"; DropDownCompanyList.DataValueField = "CompanyID"; DropDownCompanyList.DataBind(); DropDownCompanyList.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select", "0")); ItemManager itemManager = new ItemManager(); DropDownCategoryList.DataSource = itemManager.GetAllCategory(); DropDownCategoryList.DataTextField = "CategoryName"; DropDownCategoryList.DataValueField = "CategoryID"; DropDownCategoryList.DataBind(); DropDownCategoryList.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select", "0")); }