protected void Button1_Click(object sender, EventArgs e) { int userID = int.Parse(txt_userID.Text); string fName = txt_fname.Text; string Lname = txt_lname.Text; string country = txt_country.Text; string gender = rbl_gender.Text; string email = txt_email.Text; int creditCard = int.Parse(txt_creditcard.Text); string password = txt_password.Text; string password2 = txt_password2.Text; string sage = ddl_years.SelectedValue; int Age = int.Parse(sage); Service reg = new Service(); ValidationService vs = new ValidationService(); if (password == password2) { string msg = vs.CheckUserIDRegister(userID); if (msg == "Available") { reg.Register(userID, fName, Lname, Age, country, gender, email, creditCard, password); Response.Redirect("Default.aspx"); } else { Response.Write("UserID Already Taken"); } } else { Response.Write("Error - passwords do no match"); } }