Solved

asp.net c# changing sitemap based on role

Posted on 2009-04-10
4
518 Views
Last Modified: 2012-05-06
I am creating a web site that is role based.  I am using the XML sitemap tool to generate the menu and breadcrumb.  I can allow access and deny access according to roles, but I want to only show the part of the web.sitemap that is relevant for the user.  So if the user is an administrator, they will see the whole menu.  If they are a student, they will only see the student part.  Does anyone know how to configure the web.sitemap so that it only shows for the correct role?
0
Comment
Question by:Dukster131
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
spprivate earned 500 total points
ID: 24116035
You can use 'roles' attributes to achieve this functionality.

Here is a link

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

Author Comment

by:Dukster131
ID: 24116225
Excellent.  That worked great.  Thanks so much.
0
 
LVL 1

Author Closing Comment

by:Dukster131
ID: 31568912
I had looked for this information through google, but had not found the information you referred me to.  Thanks so much that was exactly what I was looking for.
0
 
LVL 15

Expert Comment

by:spprivate
ID: 24116630
You are welcome.Happy programming
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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