Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Hide SiteMap Node

Posted on 2012-09-10
3
Medium Priority
?
536 Views
Last Modified: 2012-09-26
I have the following settings within my sitemap and web.config files however the sitemapnode still displays with roles that do not match allowed roles.
What else do I need to apply?

 'This file is actually located in ~/Forms/SignIn.aspx - do i need to spell relative path.
  <location path="SignIn.aspx">  
        <system.web>
            <authorization>
                <deny users="?"/>
            </authorization>
        </system.web>
    </location>

    <siteMap defaultProvider="ListViewSiteMap" enabled="true">
      <providers>
        <add name="ListViewSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Navigation/ListViewNav.sitemap" securityTrimmingEnabled="true" />
      </providers>
    </siteMap>

            <siteMapNode url="" title="System Administration"  description="Secure Section of site for performing Administrative needs" roles="Administrator, Site Admin, Tier1" >
                <siteMapNode url="~/Forms/SignIn.aspx" title="Sign-In"  description="Sign-In" roles="Administrator, Site Admin"/>              
                <siteMapNode url="~/HelpCenter/HelpCenter.aspx" title="Help Center"  description="Find useful help tools to navigate and use ADCare Software" roles="*" />                
                <siteMapNode url="~/Lists_Views/TableList.aspx" title="Table Updates"  description="Add/Edit Table Data" roles="Administrator, Site Admin, Tier1"/>
                <siteMapNode url="~/Forms/ApplicationCarePlan.aspx" title="Application-Wide Care Plan"  description="Add/Edit Application Care Plans" roles="Administrator, Site Admin, Tier1"/>                
                <siteMapNode url="~/Lists_Views/PermissionsByRole.aspx" title="Default Permissions"  description="Add/Edit Default Permissions for Application Roles" roles="Administrator, Site Admin"/>
                <siteMapNode url="~/Account/SimpleRegister.aspx" title="Administration User Registration"  description="Add Default User for Registration" roles="Administrator"/>
            </siteMapNode>
0
Comment
Question by:Robert Treadwell
  • 2
3 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38387697
Yes try with

~/Forms/SignIn.aspx
0
 

Accepted Solution

by:
Robert Treadwell earned 0 total points
ID: 38421759
I actually solved this issue by placing .aspx in a folder and placed security on folder.

    <location path="SystemAdmin">
        <system.web>
            <authorization>
                <allow roles="Administrator, Site Admin, Tier1"/>
                <deny users="*"/>
            </authorization>
        </system.web>
    </location>
0
 

Author Closing Comment

by:Robert Treadwell
ID: 38435904
The above solution worked for issue.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

581 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