/** * method btnDoSearch_Click * executes a search against the Customer * list with the supplied parameters * The result is then refreshed into the repeater * NOTE: The search is an AND, not an OR search */ protected void btnDoSearch_Click(object sender, EventArgs e) { CustomerCollection cc = new CustomerCollection(); if (!cc.searchCustomer(txtSearchFirstName.Text, txtSearchLastName.Text, txtSearchPhoneNumber.Text, txtSearchEmail.Text)) { //error lblError.Text = cc.errorMessage; lblError.Visible = true; } else { refreshCustomerList(cc); } }