private void Wash_Iron_Load(object sender, EventArgs e) { obj = new WashManagement.WashIron(Constant.laundry_db); LoadCategory(cmbitem1); } private void LoadCategory(ComboBox CboCategory) { IDataReader drCategory; drCategory = obj.GetCategoryName(); while (drCategory.Read()) { CboCategory.Items.Add(new ListItem(drCategory["product_category_name"].ToString(), drCategory["product_category_no"].ToString())); //---------> ERROR MESSAGE } public IDataReader GetCategoryName() { try { DbCommand com = db.GetStoredProcCommand(USP_Get_Category); return db.ExecuteReader(com); } catch (Exception) { throw; } } //GET PRODUCT CATEGORY private const string USP_Get_Category = "USP_Get_Category";
system.window.documents.listitem does not contain a constructor that takes 2 arguments
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)