Solved

Show Sitemap Node only if Admin Logon

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

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 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