private void InitCustomer() { CustomerBll customerBll = new CustomerBll(); DataSet ds = customerBll.GetAllCustomer(); ddlCustomerList.DataSource = ds; ddlCustomerList.DataTextField = "CustomerName"; ddlCustomerList.DataValueField = "CustomerId"; ddlCustomerList.DataBind(); ddlCustomerList.Items.Insert(0, new ListItem("--请选择--", "0")); }