Solved

Show Sitemap Node only if Admin Logon

Posted on 2013-06-28
2
381 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
2 Comments
 
LVL 41

Accepted Solution

by:
guru_sami earned 400 total points
Comment Utility
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
Comment Utility
Just what I was looking for.

Thanks,
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
grab and show facebook pages event calendars 6 40
Total in textboxes 9 34
Re-position the objects 7 46
Copy/Clone an object. 9 10
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:…
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.
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

15 Experts available now in Live!

Get 1:1 Help Now