protected void Button1_Click(object sender, EventArgs e) { try { objuser.username = txt_email.Text; objuser.email = txt_username.Text; objuser.password = txt_password.Text; int i = BusinessUser.BusinessRegisterUser(objuser); if (i > 0) { Session["user_authenticate"] = "Verified"; Session["user_email"] = objuser.email; // sql exception handle for uniqe key Response.Redirect("user_registration.aspx"); } } catch (SqlException ex) { // Handle Exception here if e-mail already exists } catch (Exception ex) { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)