I am using built-in asp.net Role and membership provider in my website.
when user login to my system they are redirected to hompage.
how should i code it. that when he click on login button page check its role and then decide where to redirect.
Suppose user login with name John and “john” is “Admin” then application Redirect him to AdminPanel.aspx and if User john is normal “RegUser” Role then redirect him into Home.aspx.
Thanks In advance……..
On your login page, if the user was successfully logged in, you could store their role in the Session and in your
Home.aspxjust have a bit of logic which determines whether they need to be re-directed away from this page or not e.g.login.aspx
home.aspx