protected void btnRegister_Click(object sender, EventArgs e) { int userId = Usr.register(txtEmail.Text, txtFirstName.Text, txtPassword.Text); if (userId > 0) { Response.Redirect("Login.aspx"); } }
protected void Button1_Click(object sender, EventArgs e) { int userId = Usr.register("", "", "pass"); Response.Redirect("edit_user.aspx?userId=" + userId); }