menu control will not expand (2.0)

Discussion in 'ASP .Net Web Controls' started by Axford, Jun 2, 2006.

  1. Axford

    Axford Guest

    Hi,

    my asp.net 2.0 menu control is unwilling to expand it's submenu??
    This must be something very simple, but what...?

    <asp:Menu ID="mainMenu" runat="server" Orientation="Horizontal"
    DynamicHorizontalOffset="2" ForeColor="White" Font-Italic="False"
    Font-Names="Arial" Font-Size="1em" StaticSubMenuIndent="2px"
    Width="450px" >
    <StaticHoverStyle BackColor="White" ForeColor="Black" />
    <StaticMenuItemStyle HorizontalPadding="12px" VerticalPadding="2px" />
    <StaticSelectedStyle BackColor="White" ForeColor="Black"/>
    <Items>
    <asp:MenuItem Text="Start" NavigateUrl="~/Start.aspx"
    Value="Start"></asp:MenuItem>
    <asp:MenuItem Text="1" Value="~/Default.aspx"
    NavigateUrl="~/Overview.aspx?1"></asp:MenuItem>
    <asp:MenuItem Text="2" Value="~/Default.aspx"
    NavigateUrl="~/Overview.aspx?2"></asp:MenuItem>
    <asp:MenuItem Text="3" Selectable="False">
    <asp:MenuItem NavigateUrl="~/Overview.aspx?3a" Text="3a"
    ></asp:MenuItem>

    <asp:MenuItem NavigateUrl="~/Overview.aspx?3b" Text="3b"
    ></asp:MenuItem>

    </asp:MenuItem>
    </Items>
    </asp:Menu>

    thx, Axford
     
    Axford, Jun 2, 2006
    #1
    1. Advertising

  2. Axford

    Bhuva Guest

    Hi,

    Submenu is getting expanded. But you have given ForeColor as White, so
    it is not viewed. Change it to some other color and then check.
     
    Bhuva, Jun 2, 2006
    #2
    1. Advertising

  3. Axford

    Axford Guest

    Right. Got everything to work now with ItemTemplates and server side code.
    Thanks.

    "Bhuva" wrote:

    > Hi,
    >
    > Submenu is getting expanded. But you have given ForeColor as White, so
    > it is not viewed. Change it to some other color and then check.
    >
    >
     
    Axford, Jun 2, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Johnson

    Menu expand

    Mike Johnson, May 11, 2006, in forum: HTML
    Replies:
    6
    Views:
    3,505
    Mike Johnson
    May 24, 2006
  2. =?Utf-8?B?am9qb2Jhcg==?=
    Replies:
    1
    Views:
    4,167
    wwwtar
    Oct 2, 2006
  3. jobs
    Replies:
    0
    Views:
    1,228
  4. Rabel
    Replies:
    3
    Views:
    226
  5. Justin C

    Newbie expand/collapsible menu problem

    Justin C, Oct 14, 2009, in forum: Javascript
    Replies:
    6
    Views:
    203
    Justin C
    Oct 15, 2009
Loading...

Share This Page