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
Default

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:

Code:
    <asp:TreeView runat="server" 
        ID="trVwForensics" 
        CssClass="subMenuArea" 
        DataSourceID="SiteMapDataSource1" 
        ShowExpandCollapse="false" 
        NodeIndent="15" 
        ExpandDepth="2"
        LeafNodeStyle-VerticalPadding="4" 
        MaxDataBindDepth="-1"   
        PopulateNodesFromClient="false" />
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
        StartFromCurrentNode="false" 
        ShowStartingNode="false"  
        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

Neil Timmerman
Programmer
Veris Consulting