Solved

ASP.Net, Visual Studio Web Application Template(isolating menu items)

Posted on 2011-02-23
5
385 Views
Last Modified: 2012-05-11
I was wondering if there is an easy way inside of Visual Studio 2010 to isolate menu items so that each user Role sees only the menu items that I need them to see after they've logged in? For those menu items to be hidden to anonymous users?
0
Comment
Question by:J C
[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
  • 3
  • 2
5 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 34967938
0
 

Author Comment

by:J C
ID: 34967953
I appreciate the link but I don't see any information on how to control which menu items users see.
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 34967960
Part 3 talks about how to alter what menus are shown based on users role membership

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

Expert Comment

by:Paul Jackson
ID: 34967964
0
 

Author Comment

by:J C
ID: 34967989
The first method seems like it would be simpler, not necessarily the most effecient way. What would the difference be if I am using the menu that comes built into the web application template versus the defining of a sitemap?

What changes would I make below before adding this to web.config if I am applying this to my existing menu?

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode url="~/Default.aspx" title="Home">
     <siteMapNode url="~/About.aspx" title="About" />
     <siteMapNode url="~/Admin/Default.aspx" title="Admins" />
     <siteMapNode url="~/Tester/Default.aspx" title="Tester" />
     <siteMapNode url="~/AuthUsers/Default.aspx" title="Auth Users Only" />

     <!-- For links to outside resources, need to explicitly define what
          roles should be shown this section -->
     <siteMapNode url="http://www.scottonwriting.net/sowBlog/" title="My Blog"
                  roles="*" />
  </siteMapNode>
</siteMap>

 

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

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.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

729 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