troubleshooting Question

Menu Control not displaying menu properly. Only shows static links. No Dynamic pop-outs when rendered.

Avatar of NMHGADM
NMHGADMFlag for United States of America asked on
Programming Languages-Other.NET Programming
1 Comment1 Solution666 ViewsLast Modified:
I have inserted a menu control into a page.  The control uses the web.sitemap as the datasource.  There are three levels to the menu. The first two levels are set to be static and the third level should be dynamic. I render the menu in IE the first two levels appears as a static menu, as they should.  But, the dynamic third level is not appearing when I hover over the menu items.  All of the documentation I have read indicates I have this control set up properly.  Any ideas as to why it is not rendering properly for me?

I am including the code for the menu control and the site map xml.  I am also attaching a screen shot of the behavior I am experiencing when hovering over a 2nd level menu item.

<!-- Menu Control -->
        <asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
            DataSourceID="SiteMapDataSourceHome" DynamicHorizontalOffset="2" 
            Font-Names="Verdana" Font-Size="0.8em" ForeColor="#990000" 
            Orientation="Horizontal" StaticSubMenuIndent="10px" BorderColor="#333333" 
            BorderStyle="Solid" BorderWidth="1px" StaticDisplayLevels="2">
            <StaticSelectedStyle BackColor="#FFCC66" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
            <DynamicMenuStyle BackColor="#FFFBD6" />
				<%# Eval("Text") %>
            <DynamicSelectedStyle BackColor="#FFCC66" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticHoverStyle BackColor="#990000" ForeColor="White" />
        <asp:SiteMapDataSource ID="SiteMapDataSourceHome" runat="server">

<!-- Site Map XML -->

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="" >
  <siteMapNode url="Default.aspx" title="Home"  description="Home Page">
    <siteMapNode url="Default2.aspx" title="Test 1"  description="1st Page" >
      <siteMapNode url ="Default3.aspx" title ="Test 1 1" description ="1st Page 1st Sub Menu Item" />
    <siteMapNode url="Default4.aspx" title="Test 2"  description="2nd Page" >
      <siteMapNode url ="Default5.aspx" title ="Test 2 1" description ="2nd Page 1st Sub Menu Item" />
    <siteMapNode url="Default6.aspx" title="Test 3"  description="3rd Page" >
      <siteMapNode url ="Default7.aspx" title ="Test 3 1" description ="3rd Page 1st Sub Menu Item" />
  </siteMapNode >

Open in new window


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros