Solved

How to manage role/User rights with sitemap

Posted on 2006-11-28
3
594 Views
Last Modified: 2013-12-03
Hi experts

i would like to know how to manage role/user right in asp.net because in my actual website i create some role and rights like this :
(a folder is a folder in the root of my website)

role 1
  access folder 1 : Yes
  access folder 2 : Yes
  access folder 3 : No
role 2
  access folder 1 : Yes
  access folder 2 : No
  access folder 3 : No
role 3
  access folder 1 : No
  access folder 2 : No
  access folder 3 : Yes


and in each webpage i'm doing this :

  If User.IsInRole("Admin") Then
                mMenu.DataSource = ClsMisc.GetSiteMapDataSource("~/Navigation/SuperAdmin.sitemap", "~/UniquePageSuperAdmin.aspx")
            ElseIf User.IsInRole("Modérateur") Then
                mMenu.DataSource = ClsMisc.GetSiteMapDataSource("~/Navigation/Admin.sitemap", "~/UniquePageAdmin.aspx")
            End If


i have to test each role to bind the correcte sitemap for the current user
so if i have 300 roles... i don't think it's a good solution for managing role and/or user rights

Please HELP ME!!!

kind regards.
0
Comment
Question by:Dnx_7
3 Comments
 
LVL 8

Assisted Solution

by:sabeesh
sabeesh earned 150 total points
ID: 18026608
0
 
LVL 20

Accepted Solution

by:
brwwiggins earned 350 total points
ID: 18028284
You want to do a search on security trimming

http://aspnet.4guysfromrolla.com/articles/122805-1.aspx
0
 
LVL 2

Author Comment

by:Dnx_7
ID: 18029148
thanks to both of you

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question