I was wondering how it's possible to redirect the user to a page that depends on the users role.
So if the user is an admin, he gets redirected to /admin/admin.aspx - if the user is an moderator, he gets redirected to /moderator/mod.aspx, etc.
I tried using the OnLoggedIn function this way:
private void OnLoggedIn(object sender, EventArgs e)
{
if(Roles.IsUserInRole("Administrator"))
{
Response.Redirect("~/Admins.aspx");
}
else
{
Response.Redirect("~/Default.aspx");
}
}< ...
Go to the complete details ...