public void BindAcmSuppliers() { try { BALandSuppliers objBalandSuppliers = new BALandSuppliers(); int landSupId = 0; DataSet datasetland = new DataSet(); datasetland = objBalandSuppliers.GetLandSupplier(landSupId); if (datasetland.Tables[0].Rows.Count > 0) { DDLACMSupplier.DataSource = datasetland.Tables[0]; DDLACMSupplier.DataTextField = "LSupplierName"; DDLACMSupplier.DataValueField = "LSupplierId"; DDLACMSupplier.DataBind(); DDLACMSupplier.Items.Insert(0, new ListItem("--Select Supplier--", "0")); } else { DDLACMSupplier.DataSource = null; DDLACMSupplier.DataBind(); DDLACMSupplier.Items.Insert(0, new ListItem("--Select Supplier--", "0")); } } catch (Exception ex) { lblMsg.Text = _objBOUtiltiy.ShowMessage("danger", "Danger", ex.Message); } }