常用方法
常用方法
常用方法
常用方法
public void GetAllSuppliers() { SuppliersDropDownList.DataSource = _PurchaseRepository.GetAllSupplliers(); SuppliersDropDownList.DataTextField = "Name"; SuppliersDropDownList.DataValueField = "Id"; SuppliersDropDownList.DataBind(); SuppliersDropDownList.Items.Insert(0, new ListItem("Chose Supplier", "0")); }