[RESOLVED]Menus

I am using Visual web developer 2008 Express.  I have a menu with a static top level and a dynamic second level.  When the dynamic level is displayed the background is always white.  How do I set the background and foreground colors for the dynamic menu
level? 

you can use below mark up to set the dynamic menu style.

<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
            <DynamicMenuStyle BackColor="#000099" ForeColor="Bisque" />
        </asp:Menu>

Did you try:

<

 

 

 

 

<asp:Menu
ID="Menu1"
runat="server"

DynamicMenuItemStyle-BackColor="Black"

DynamicMenuStyle-ForeColor="White"

DynamicHoverStyle-BackColor="Red"

DynamicHoverStyle-ForeColor="#003399">

 

<Items>

 

<asp:MenuItem
Text="top1"
Value="top1">

 

<asp:MenuItem
Text="child1"
Value="child1"></asp:MenuItem>

 

</asp:MenuItem>

 

</Items>

 

</asp:Menu>

 

 

 

 

 

Leave a Reply