- Total Members: 220,002
- Threads: 525,379
- Posts: 976,969
-
December 6th, 2012, 02:07 PM
#1
Find Role of logged in user and redirect to specific page based on roles
Hi,
I am pretty new in ASP.NET c#. But i am getting a good hold of it. There are all the time new things a new learner comes up with though and spends hours together finding out a solution.
Here is my issue.
I have a ASP.NET membership setup. I have a asp login system on the website. I have created 2 roles Administrator and Users.
I have 1 user in Administrator and 1 in Users currently for my testing purpose.
Now when the user logs in to the system i want to check there roles and if the role of teh logged in user is Administrator then send them to a specific folder called admin or else send them to the default.aspx in root directory.
How do we find the Role of logged in user and redirect accordingly.
Thanks in advance.
Sunny
Similar Threads
-
By QEDDave in forum .NET Development
Replies: 1
Last Post: April 3rd, 2011, 02:57 AM
-
By condeagustin in forum .NET Development
Replies: 7
Last Post: January 22nd, 2007, 01:33 PM
-
By kmuel in forum ASP Development
Replies: 3
Last Post: July 24th, 2005, 02:25 PM
-
By Scott707 in forum ASP Development
Replies: 58
Last Post: July 7th, 2004, 07:39 AM