Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to manage role/User rights with sitemap

Posted on 2006-11-28
3
Medium Priority
?
621 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 600 total points
ID: 18026608
0
 
LVL 20

Accepted Solution

by:
brwwiggins earned 1400 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

916 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