protected void Button1_Click(object sender, EventArgs e) { DBAcme DB = (DBAcme)Session["DB"]; string txtUserName = userName.Text; string pass = cryptData.Encrypt(password.Text); string conPassword = cryptData.Encrypt(confirmPassword.Text); string mail = email.Text; string Phone = phone.Text; int numrow = DB.InsertUser(mail, txtUserName, pass, conPassword, Phone); Response.Redirect("/Account/Login"); Session["reg"] = "Registered"; }
protected void Button1_Click(object sender, EventArgs e) { DBAcme DB = (DBAcme)Session["DB"]; string name = fullName.Text; string pass = password.Text; string conPassword = confirmPassword.Text; string mail = email.Text; string Phone = phone.Text; int Postal = Convert.ToInt32(postalcode.Text); int numrow = DB.InsertUser(mail, name, pass, conPassword, Phone, Postal); Response.Redirect("/Account/Login"); Session["reg"] = "Registered"; }