Solved

asp.net c# changing sitemap based on role

Posted on 2009-04-10
4
513 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
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
spprivate earned 500 total points
Comment Utility
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
Comment Utility
Excellent.  That worked great.  Thanks so much.
0
 
LVL 1

Author Closing Comment

by:Dukster131
Comment Utility
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
Comment Utility
You are welcome.Happy programming
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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.…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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