protected void btnContactSubmit_Click(object sender, EventArgs e) { if (Page.IsValid) { CustomerMessageStore cust = new CustomerMessageStore(); cust.lastName = txtLastName.Text; cust.firstName = txtFirstName.Text; cust.email = txtEmail.Text; cust.subject = txtSubject.Text; cust.message = txtMessage.Text; BookStore bl = new BookStore(); bl.CustomerMessage(cust); AddCookie(); Server.Transfer("successpage.aspx?success=contact"); } }