The problem is that .net 2.0 gives an error if I have more than one
SiteMapNode directly under the SiteMap tag. For example, I can't do
this: (for simplicity, i didn't include code for the sub-items)
<siteMap>
<siteMapNode title="Home" />
<siteMapNode title="Support" />
<siteMapNode title="Contact Us" />
</siteMap>
So how can I have multiple Top Level menu items using web.sitemap?
Thanks!
John
<siteMap>
<siteMapNode>
<siteMapNode title="Home" />
<siteMapNode title="Support" />
<siteMapNode title="Contact Us" />
</siteMapNode>
</siteMap>
The "top level" items are actually sub items. By default doing this
doesn't work because the root siteMapNode doesn't have any value.
I had to add ShowStartingNode="False" here:
<asp:SiteMapDataSource ID="SiteMapDataSource1"
ShowStartingNode="False" runat="server" />
That fixed the problem. :)
John