示例#1
0
 void DisplayCustomers()
 {
     E_auction_class_library.clsCustomerCollection Customers = new E_auction_class_library.clsCustomerCollection();
     lstCustomers.DataSource     = Customers.CustomerList;
     lstCustomers.DataValueField = "CustomerNo";
     lstCustomers.DataTextField  = "CustomerUsername";
     lstCustomers.DataBind();
 }
示例#2
0
 protected void btnApply_Click(object sender, EventArgs e)
 {
     E_auction_class_library.clsCustomerCollection Customers = new E_auction_class_library.clsCustomerCollection();
     Customers.ReportByUsername(txtUsername.Text);
     lstCustomers.DataSource     = Customers.CustomerList;
     lstCustomers.DataValueField = "CustomerID";
     lstCustomers.DataTextField  = "CustomerUsername";
     lstCustomers.DataBind();
 }