Imar,
This is a great resource! Thanks for writing it. I'm having trouble with the switch statement that hides the Menu1 control and shows TreeView1. I coded it exactly as shown on pg. 259, but the DarkGrey theme still shows a menu control in FireFox. I also tried switching the "default" to
Code:
Menu1.Visible= false; TreeView1.Visible = true;
but the browser still showed the menu. Monochrome has the menu as expected. I've included my source code below:
Code:
<div id="MenuWrapper">
<asp:Menu ID="Menu1" runat="server" CssClass="MainMenu"
DataSourceID="SiteMapDataSource1" Orientation="Horizontal"
StaticEnableDefaultPopOutImage="False">
</asp:Menu>
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" >
<LevelStyles>
<asp:TreeNodeStyle CssClass="FirstLevelMenuItems" />
</LevelStyles>
</asp:TreeView>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="False" />
</div>
Thank you!