Manage user access to pages in ASP.NET

haz00ma

New Member
I am using MembershipProvider and currently a have 3 roles:User, Super User, Admin.Also I have pages that can be seen only by Admin and Super User.For these pages a I use configuration in web config:\[code\] <location path="Users.aspx"> <system.web> <authorization> <allow roles="Admin, Super User"/> <deny users="*" /> </authorization> </system.web> </location>\[/code\]And this works perfectly fine.But I have bunch of pages \[code\]EvaluationsActionsReportsFiles\[/code\]to which a I want separate access. I want grant access to each page individually.Is there better way to do it than create roles for each page and than assign to these roles?P.S.I am using ASP.NET, not MVC
 
Back
Top