Quote:
Originally Posted by Imar
Hi there,
Did you forget to set ShowStartingNode="False" ?
Imar
|
From the original question I asked, yes that was the mistake I made. I fixed that and the asp:TreeView and asp:Menu controls now work as they should.
The asp:SiteMapPath control doesn't appear to even have an option to add DataSourceID="SiteMapDataSource1", yet it seems to be using it. To test a theory, I changed the title of the second link to "~Default.aspx" from "Home" to "Planet Wrox" so now in the top nav bar I see :
"Planet Wrox, Reviews, About, Login"
When I click on Planet Wrox in the top nav, I see:
"Home > Planet Wrox" instead of "Home > Home"
I went to the live version of the site - it's doing the same thing on the main page for the breadcrumb link below the top nav bar, I see "Home > Home" when I go to
http://aspnet4.planetwrox.com/Default.aspx
I guess it's just something that control does. I found some code that's supposed to programmatically hide the root node when the control gets created, but it got rid of "Home" everywhere, so there was no way to use it to get back to the default page. I disabled that.
Just a little oddity I noticed, not really a big deal.