我正在使用的asp:菜单呈现旧的表格布局。有人可以帮我创建一个无序列表,其中包含悬停菜单的嵌套无序列表。我需要输出像这样渲染:
<ul>
<li><a href="">Link</a></li>
<li><a href="">Link</a></li>
<li><a href="">Link</a></li>
<li><a href="">Link</a>
<ul>
<li><a href=""></a></li>
</ul>
</li>
</ul>
XML数据Feed如下所示:
<SiteMap>
<item Text="(!menu.Home!)" NavigateUrl="default.aspx" LookId="VertTopItemLook"/>
<item Text="(!menu.Categories!)" LookId="VertTopItemLook" />
<item Text="(!menu.Sections!)" LookId="VertTopItemLook" />
<item Text="(!menu.Manufacturers!)" LookId="VertTopItemLook" />
<item Text="(!menu.CustomerService!)" NavigateUrl="t-service.aspx" LookId="VertTopItemLook">
<MenuItem Text="(!menu.YourAccount!)" NavigateUrl="account.aspx" />
<MenuItem Text="(!menu.OrderHistory!)" NavigateUrl="account.aspx" />
<MenuItem Text="(!menu.FAQs!)" NavigateUrl="t-faq.aspx" />
<MenuItem Text="(!menu.PolicyReturns!)" NavigateUrl="t-returns.aspx" />
<MenuItem Text="(!menu.Shipping!)" NavigateUrl="t-shipping.aspx" />
<MenuItem Text="(!menu.Contact!)" NavigateUrl="t-contact.aspx" />
<MenuItem Text="(!menu.PolicyPrivacy!)" NavigateUrl="t-privacy.aspx" />
<MenuItem Text="(!menu.PolicySecurity!)" NavigateUrl="t-security.aspx" />
</item>
</SiteMap>