ASP.Net menu control - Horizontal - Do not show auxiliary parameters

I am trying to use an ASP: Menu control. It is pretty simple. I want it horizontally. Each of these first level items will have Sub items. I can get it horizontally, and when I’m over the Instant reports or Configurable reports option, it seems to pop up a div or something, but it’s empty. I tried formatting and everything I can come up with and also find on the Internet. What am I doing wrong?

<asp:Menu ID="mnuChoices" runat="server" Orientation="Horizontal" DataSourceID="dsSiteMap"> </asp:Menu> <asp:SiteMapDataSource ID="dsSiteMap" runat="server" ShowStartingNode="false" /> 

Here is the sitemap.

 <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"> <siteMapNode url="" title="MenuItems" description=""> <siteMapNode url="" title="Instant Reports" description=""> <siteMapNode url="" title="Current System Health" description=""> <siteMapNode url="~/ConfigurableReports/PropCredit30/TestLog.aspx" title="TEST" description=""></siteMapNode> </siteMapNode> <siteMapNode url="" title="Credit on Renewal" description="" /> </siteMapNode> <siteMapNode url="" title="Configurable Reports" description=""> <siteMapNode url="~/ConfigurableReports/PropCredit30/AuditLog.aspx" title="Prop Credit 3 - Audit Log" description="" /> <siteMapNode url="~/ConfigurableReports/PropCredit30/ErrorLog.aspx" title="Prop Credit 3 - Failure Log" description="" /> </siteMapNode> </siteMapNode> 

It seems so easy. What am I missing?

TIA

+3
source share
2 answers

Sounds like a problem that I ran into Menu, but this only happened in IE8 ... IE8 did not handle z-index correctly. Simple commit fortunately:

 <asp:Menu ID="mnuChoices" runat="server" Orientation="Horizontal" DataSourceID="dsSiteMap"> <DynamicMenuStyle CssClass="submenu" /> </asp:Menu> 

CSS

 .submenu {z-index: 9999; /* IE8 FIX for asp:Menu */} 
+4
source

Source: https://habr.com/ru/post/1334305/


All Articles