protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
if (Membership.ValidateUser(Login1.UserName, Login1.Password))
{
if (Membership.ValidateUser(Login1.UserName, Login1.Password))
{
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, Login1.RememberMeSet);
if (Roles.IsUserInRole("Administrators"))
{
Response.Redirect("Choose.aspx");
}
else
{
Response.Redirect("AdminPanel.aspx");
}
}
}
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
if (Membership.ValidateUser(Login1.UserName, Login1.Password))
{
if (Membership.ValidateUser(Login1.UserName, Login1.Password))
{
...
Go to the complete details ...