I was wondering if anyone knows a proper/best practice way of overriding the url of where the page takes you after you successfully login.
I tried this:
protected void Login1_LoggedIn(object sender, EventArgs e)
{
if (Roles.IsUserInRole(Login1.UserName, "Other"))
{
Response.Redirect("/User/");
}
else if (Roles.IsUserInRole(Login1.UserName, "Administrator"))
{
Response.Redirect("/Admin/");
}
}
Does anyone have any other suggestions?