Results 1 to 2 of 2
Mar 26, 2009, 08:07 #1
Treeview/SiteMapDataSource - Removing Nodes
I use my web.sitemap file to help build my site navigation and I also use it on my 'Sitemap.aspx' page which simply displays the entire hierarchy in a TreeView.
On my Sitemap.aspx page, I'm trying to hide those nodes in the web.sitemap that are used to 'edit' particular objects. These pages generally accept variables through the QueryString and are normally accessed through other pages in the application. Hence, it doesn't make sense to enter those pages directly so I need to remove them from the tree generated on my Sitemap.aspx page.
I added a custom property to the nodes that need to be removed in my web.sitemap file (hideNode='true') but I can't seem to find a way to isolate those nodes during the binding process and not populate them in the TreeView.
Is there any way to do this?