using
System;
System.Collections.Generic;
System.Linq;
System.Web;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.Security;
namespace
Supportticketsystem.Account
{
public partial class Login : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
}
protected void LoginUser_Authenticate(object sender, AuthenticateEventArgs e)
TextBox txtBox = (TextBox)LoginUser.FindControl("UserName");
if (Roles.IsUserInRole(txtBox.Text, "User"))
Response.Redirect(
"/Users/UserIndex.aspx");
if (Roles.IsUserInRole(txtBox.Text, "Administrator"))
"AdminIndex.aspx");
if (Roles.IsUserInRole(txtBox.Text, "Expert"))
"ExpertIndex.aspx");
Kindly help me with the above program. As it running without errors but the purpose is not met. As it is obvious in the program I want to redirect the users to perticular pages by customising the login control. But it is redircting to the same Default page.