Solved

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

Posted on 2011-02-23
5
380 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
  • 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
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.

744 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

13 Experts available now in Live!

Get 1:1 Help Now