protected void ButtonAdd_Click(object sender, EventArgs e) { Customer c = new Customer( TextBoxFirstName.Text, TextBoxLastName.Text, int.Parse(TextBoxAge.Text), TextBoxZipcode.Text, TextBoxPassword.Text); Application.Lock(); theCustomer = (NewCustomer)Application["Customers"]; theCustomer.AddCustomer(c); Application["Customers"] = theCustomer; Application.UnLock(); UpdateCustomerListView(); }
protected void ButtonUpdate_Click(object sender, EventArgs e) { theCustomer = (NewCustomer)Application["Customers"]; UpdateCustomerListView(); }