Ejemplo n.º 1
0
 protected void SignIn(object sender, EventArgs e)
 {
     if (proxy.SignIn(username.Text, password.Text))
     {
         Response.Redirect("~/Account.aspx");
     }
     else
     {
         Error.Text = "Password and username don't match";
     }
 }
Ejemplo n.º 2
0
 protected void signup(object sender, EventArgs e)
 {
     if (!proxy.SignUp(Username.Text, Password.Text, email.Text, Calendar.SelectedDate, FName.Text, LName.Text))
     {
         error.Text = "Couldn't sign up";
     }
     else
     {
         proxy.SignIn(Username.Text, Password.Text);
         Response.Redirect("~/Account.aspx");
     }
 }