Solved

How to manage role/User rights with sitemap

Posted on 2006-11-28
3
584 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
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…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now