Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Show Sitemap Node only if Admin Logon

Posted on 2013-06-28
2
Medium Priority
?
395 Views
Last Modified: 2013-06-28
I have a sitemap node that should display as a menu item only if Admin logs on.
All restricted aspx files are in the Admin folder.

The files in the Admin folder should be available only if Admin logs on.

Can you direct me to appropriate documentation?

Thanks,



   <siteMapNode title="Admin" name ="mnuAdmin" description="Administration" id="Admin" roles ="Admin">

      <siteMapNode title="High Performers" description="High Performers"
                    url="~/Admin/FindPriceExceptions.aspx" />

      <siteMapNode title="Score Stocks" description="Financial Evaluation"
                     />

      <siteMapNode title="Watch List (Registered Users)" description="Manage Watch List"
                  />
0
Comment
Question by:Dovberman
[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
2 Comments
 
LVL 41

Accepted Solution

by:
guru_sami earned 1600 total points
ID: 39285162
If your Admin folder is secured using asp.net authorization, you can set securityTrimmingEnbaled="true" for your sitemapprovider in your web.config.

Refs:
http://geekswithblogs.net/azamsharp/archive/2006/05/02/77018.aspx
http://blogs.msdn.com/b/dannychen/archive/2006/03/16/553005.aspx
0
 

Author Closing Comment

by:Dovberman
ID: 39285812
Just what I was looking for.

Thanks,
0

Featured Post

Technology Partners: 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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
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 …

670 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