Link to home
Start Free TrialLog in
Avatar of NMHGADM
NMHGADMFlag for United States of America

asked on

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

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" />
            <DynamicItemTemplate>
				<%# Eval("Text") %>
			</DynamicItemTemplate>
            <DynamicSelectedStyle BackColor="#FFCC66" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticHoverStyle BackColor="#990000" ForeColor="White" />
        </asp:Menu>
        <asp:SiteMapDataSource ID="SiteMapDataSourceHome" runat="server">
		</asp:SiteMapDataSource>

<!-- Site Map XML -->

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <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>
    <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>
    <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>
  </siteMapNode >
</siteMap>

Open in new window

MenuControlScreenShot.gif
ASKER CERTIFIED SOLUTION
Avatar of NMHGADM
NMHGADM
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial