Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys

I wonder if you guys can help me. I have a sitemap in my ASP Project but in some conditions I want to hide some nodes. If you can point me in the right direction it would be helpfull

Sitemap:

XML
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="Information.aspx" title="Home"  description="" >
        <siteMapNode url="frmUserDetails.aspx" title="User Details"  description="" />
      <siteMapNode url="frmRegister.aspx" title="Add User"  description="" />

      <siteMapNode url="" title="Password Details" description="" >
        <siteMapNode url="frmChangePassword.aspx" title="Change Password" description="" />
      </siteMapNode>
      <siteMapNode url="frmProduct.aspx" title="Product"  description=""/>
    </siteMapNode>
</siteMap>
Posted

Your solution is here : How to Hide TreeView Node[^]
 
Share this answer
 
Comments
Gericke Hoeksema 30-May-12 4:43am    
Thank you for your fast response, that solution is not basically what I want. What I want to achieve is to only hide like one node in my sitemap according to a condition.

<sitemapnode url="frmUserDetails.aspx" title="User Details" description="">
I found a solution. I created a sql table with all my nodes. depending my condition the correct nodes will be select in my table.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900