I am trying to take a menu/sitemap object in vb.net and create a specific set of code to style, the menu code is pretty simple:
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" SiteMapProvider="MySiteMap" />
<asp:Menu ID="Menu1" runat="server" CssClass="menu" DataSourceID="SiteMapDataSource1"
EnableViewState="False" IncludeStyleBlock="False" StaticDisplayLevels="2" Orientation="Vertical"> </asp:Menu>
I would like to put it into the following structure, but can't seem to figure out how:
<li class="active">
<a href="index.html">
<span>First Menu Option</span>
</a>
</li>
<li>
<a href="1stMenuOption.html">
<span>Second Menu Option</span>
</a>
</li>
<li class="treeview">
<a href="#">
<span>3rd Menu Option with Sub-Menu</span>
</a>
<ul class="treeview-menu">
<li><a href="1stSubMenu.html">First Sub-Menu</a></li>
<li><a href="2ndSubMenu.html">Second Sub-Menu</a></li>
<li><a href="3rdSubMenu.html">Third Sub-Menu</a></li>
</ul>
</li>
I'm sure it has to be possible, just not sure what to do.