Solved

asp.net c# changing sitemap based on role

Posted on 2009-04-10
4
517 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

Technology Partners: 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

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 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