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
Solved

asp.net c# changing sitemap based on role

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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 …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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