menu control will not expand (2.0)

A

Axford

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>
<asp:MenuItem NavigateUrl="~/Overview.aspx?3b" Text="3b"
</asp:MenuItem>
</asp:MenuItem>
</Items>
</asp:Menu>

thx, Axford
 
B

Bhuva

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.
 
A

Axford

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top