Solved

Show Sitemap Node only if Admin Logon

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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 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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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