Solved

Show Sitemap Node only if Admin Logon

Posted on 2013-06-28
2
386 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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