View Single Post
  #3 (permalink)  
Old August 24th, 2006, 11:05 PM
thenoseknows thenoseknows is offline
Friend of Wrox
Join Date: Feb 2006
Location: , , USA.
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts

If I understand your asking correctly, then all you need to do is configure the control you are using to display the sitemap data. There are lots of controls you can bind the web.sitemap to.

Here is a treeview menu bound to my web.sitemap that doesn't show the parent node, but only each node underneath it:

    <asp:TreeView runat="server" 
        PopulateNodesFromClient="false" />
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
        StartingNodeUrl="../Forensics/Default.aspx" />
They key is to set the starting node Url, and then set ShowStartingNode="false". If you don't set the starting Url, it will default to the root node.

Hope that helps.


Neil Timmerman
Veris Consulting