Example #1
0
 protected void LogIn(object sender, EventArgs e)
 {
     localhost.WebService1 ws = new localhost.WebService1();
     if (IsValid)
     {
         // Validate the user password
         string email      = Email.Text;
         string pass       = Password.Text;
         string returnPass = ws.validateUserAccountWS(email);
         if (pass.Equals(returnPass))
         {
             Session["email"] = Email.Text;
             Response.Redirect("~/Account/LoginSuccess");
         }
         else
         {
             ErrorMessage.Visible = true;
             FailureText.Visible  = true;
             FailureText.Text     = "Invalid Credentials. Please try again!";
         }
     }
 }
        protected void LogIn(object sender, EventArgs e)
        {
            localhost.WebService1 ws = new localhost.WebService1();
            if (IsValid)
            {
                // Validate the user password
                string email = Email.Text;
                string pass = Password.Text;
                string returnPass = ws.validateUserAccountWS(email);
                if (pass.Equals(returnPass))
                {
                    Session["email"] = Email.Text;
                    Response.Redirect("~/Account/LoginSuccess");
                }
                else
                {
                    ErrorMessage.Visible = true;
                    FailureText.Visible = true;
                    FailureText.Text = "Invalid Credentials. Please try again!";
                }

            }
        }