Click here to Skip to main content
15,844,152 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a project. which have following.

A Table named Person.
A Table named PersonRole.

MVC Project.

- Areas
- Customer
- Team
- Admin

- Webconfig (root level)
i have configured role on the Admin,Customer,Team Directory in Areas.


When i try to access the admin directory it redirects me to the login page. yeah right!
i logged in and got the user object having role.

but i dont know how do i compare the role and allow the access to current user on appropriate directory.

for the temporary solution i have created the custom attribute for the respected role it works fine to my but i want something like on the whole directory.

Note: (i am not using Membership API)

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900