Dear All,
I have a SiteMapDataSource and I would like to display the Menu with DropDownMenu as ChildNodes:
ASPX:
<asp:Repeater runat="server" ID="menu" DataSourceID="SiteMapDataSource1">
<ItemTemplate>
<li ID="listItem" runat="server" class="current-page">
<asp:HyperLink ID="myMenuIcons" runat="server" CssClass="AssetHeadermenulink" NavigateUrl='<%# Eval("Url") %>'> <%# Eval("Title") %></asp:HyperLink>
</li>
</ItemTemplate>
</asp:Repeater>
SiteMapDataSource:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode url="~/" title="MainPage" description="Home">
<siteMapNode url="~/Test/info" title="COURSE" description="Course Info">
<siteMapNode url="~/Test/booking" title="BOOKING" description="Course Booking" />
<siteMapNode url="~/Test/Cansel" title="CANCELLATION" description="Course Cancellation" />
</siteMapNode>
</siteMapNode>
</siteMap>
How to Resoulve this ?
Many thanks in advance