Example #1
0
        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");
            }
        }
Example #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            int userId = Usr.register("", "", "pass");

            Response.Redirect("edit_user.aspx?userId=" + userId);
        }