[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-02-23
5
Medium Priority
?
392 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 2000 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

Industry Leaders: 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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

830 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