if(FormsAuthentication.Authenticate(txtUsername.Text, txtPassword.Text))
FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, true);
else
{
txtPassword.Text = “”;
if(System.Convert.ToInt32(ViewState[“Tries”]) >1 )
Response.Redirect(“Denied.htm”);
else
ViewState[“Tries”] = System.Convert.ToInt32(ViewState[“Tries”]) + 1;
}
Authenticate method checks the username and password against the user’s list found in the
No comments:
Post a Comment