protected void btnAddCust_Click(object sender, EventArgs e) { if (Page.IsValid) { CustomerList custList = CustomerList.GetCustomers(); custList.AddCust(selectedCust); } }
protected void btnAddCust_Click(object sender, EventArgs e) { if (Page.IsValid) { custList = CustomerList.GetCustomers(); custList.AddCust(selectedCust); lbCustListCount.Text = custList.Count.ToString(); } }