示例#1
0
        public void GetAllSuppliers()
        {
            SuppliersDropDownList.DataSource     = _PurchaseRepository.GetAllSupplliers();
            SuppliersDropDownList.DataTextField  = "Name";
            SuppliersDropDownList.DataValueField = "Id";
            SuppliersDropDownList.DataBind();

            SuppliersDropDownList.Items.Insert(0, new ListItem("Chose Supplier", "0"));
        }