Solved

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

Posted on 2011-02-23
5
384 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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 …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 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