MenuItems do not expand

Only 2 mnenu items expand to 2nd level.
<tr>
        <td colspan="2" valign= "top" >
   
           <asp:menu id="NavigationMenu1" 
              staticdisplaylevels="2"
              staticsubmenuindent="2" 
              orientation="Horizontal"
              target="_blank"
              Font-names="Arial, Gill Sans"
              Width="600px"
              runat="server" Font-Size="12 px" StaticMenuItemStyle-ItemSpacing="2">

          <items>
            <asp:menuitem text="Home" tooltip="Home">
            
            <asp:menuitem text="Information" tooltip="General Information">
              <asp:menuitem text="Item 1" tooltip="Item 1"/>
              <asp:menuitem text="Item 2" tooltip="Item 2"/>
              <asp:menuitem text="Item 3" tooltip="Item 3"/>
            </asp:menuitem>
            
            <asp:menuitem text="Features" tooltip="Features">
              <asp:menuitem text="Item 1" tooltip="Item 1"/>
              <asp:menuitem text="Item 2" tooltip="Item 2">
                <asp:MenuItem Text="Subitem 1"/>
                <asp:menuitem Text="Subitem 2" />
              </asp:menuitem>
              <asp:menuitem text="Item 3" tooltip="Item 3"/>
            </asp:menuitem>
          </asp:menuitem>
          
          <asp:menuitem text="Membership" * This menu item does not expand. tooltip="Membership Information">
              <asp:menuitem text="Item 1" tooltip="Item 1"/>
              <asp:menuitem text="Item 2" tooltip="Item 2" />
              <asp:menuitem text="Item 3" tooltip="Item 3"/>
          </asp:menuitem>

        </items>
        </asp:menu>

         </td>  
      </tr>

Open in new window

MenuImage.jpg
DovbermanAsked:
Who is Participating?
 
robastaConnect With a Mentor Commented:
The membership menuitem was outside the main menu item.

Use the attached menu:


(tip:to see a hierarchical view of the menu items in VS, select the whole menu, right click, and choose 'Format Selection')

<asp:Menu ID="NavigationMenu1" StaticDisplayLevels="2" StaticSubMenuIndent="2" Orientation="Horizontal"
            Target="_blank" Font-Names="Arial, Gill Sans" Width="600px" runat="server" Font-Size="12 px"
            StaticMenuItemStyle-ItemSpacing="2">
            <Items>
                <asp:MenuItem Text="Home" ToolTip="Home">
                    <asp:MenuItem Text="Information" ToolTip="General Information">
                        <asp:MenuItem Text="Item 1" ToolTip="Item 1" />
                        <asp:MenuItem Text="Item 2" ToolTip="Item 2" />
                        <asp:MenuItem Text="Item 3" ToolTip="Item 3" />
                    </asp:MenuItem>
                    <asp:MenuItem Text="Features" ToolTip="Features">
                        <asp:MenuItem Text="Item 1" ToolTip="Item 1" />
                        <asp:MenuItem Text="Item 2" ToolTip="Item 2">
                            <asp:MenuItem Text="Subitem 1" />
                            <asp:MenuItem Text="Subitem 2" />
                        </asp:MenuItem>
                        <asp:MenuItem Text="Item 3" ToolTip="Item 3" />
                    </asp:MenuItem>
                    <asp:MenuItem Text="Membership" ToolTip="Membership Information">
                        <asp:MenuItem Text="Item 1" ToolTip="Item 1" />
                        <asp:MenuItem Text="Item 2" ToolTip="Item 2" />
                        <asp:MenuItem Text="Item 3" ToolTip="Item 3" />
                    </asp:MenuItem>
                </asp:MenuItem>
            </Items>
        </asp:Menu>

Open in new window

0
 
DovbermanAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.