the_b1ackfox
asked on
asp.net 2010 Authentication lost
Hello Experts, I am trying to add authentication to a website, by starting with the existing default site with authentication. I can log in and all. However, I would like it to redirect to a landing page based upon role.
I have gone to the login page, and added the following event:
LoggedIn
In the handler, I have added the following intense code:
if(User.IsInRole("LostUser "))
{
//User.Identity
String Tom="Bock Bock Bock";
}
As you can guess, the string Tom is never assigned the goofy phrase. Can someone tell me what I am missing or how I can get the users role?
Thank you in advance:
Fox
I have gone to the login page, and added the following event:
LoggedIn
In the handler, I have added the following intense code:
if(User.IsInRole("LostUser
{
//User.Identity
String Tom="Bock Bock Bock";
}
As you can guess, the string Tom is never assigned the goofy phrase. Can someone tell me what I am missing or how I can get the users role?
Thank you in advance:
Fox
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER