|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
asp:menu dynamichoverstyle backcolor does not work..When I hover over the bg color does not change. Anybody know why? The only source I have is this aspx page. I am on asp.net 2.0 and I check IIS and it's set to 2.0 as well. I'm running windows 2000 and IIS 5.0 <%@ Page Language="VB" %> <html> <head runat="server"> </head> <body> <form runat="server"> <asp:Menu ID="x5" ForeColor="blue" backcolor="white" orientation="Vertical" runat="server"> <dynamichoverstyle backcolor="red" forecolor="Black"/> <Items> <asp:MenuItem NavigateUrl="x.aspx?s=y" Text="Fence Styles" Value="Fences" tooltip="x" > </asp:MenuItem> <asp:MenuItem NavigateUrl="x.aspx?s=z" Text="Gate Styles" Value="Gates"></asp:MenuItem> </Items> </asp:menu> </form> </body> </html> hi, this is happening because you have set DynamicHoverStyle on a menu with
StaticMenuItems. For static menu items use the StaticHoverStyle. Only for items that are flyout items, that dropdown are considered DynamicHoverStyle, which you do not have in your menu. Instead try : <asp:Menu ID="Menu1" runat="server" BackColor="White" ForeColor="Blue"> <Items> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem> </Items> <StaticHoverStyle BackColor="Red" ForeColor="Black" /> </asp:Menu> Regards, Alessandro Zifiglio http://www.AsyncUI.net <webmas***@1stmiami.com> ha scritto nel messaggio Show quoteHide quote news:1153327682.574699.93100@h48g2000cwc.googlegroups.com... > dynamichoverstyle backcolor does not work.. > > When I hover over the bg color does not change. Anybody know why? The > only source I have is this aspx page. I am on asp.net 2.0 and I check > IIS and it's set to 2.0 as well. I'm running windows 2000 and IIS 5.0 > > > <%@ Page Language="VB" %> > > <html> > <head runat="server"> > </head> > > <body> > <form runat="server"> > > <asp:Menu ID="x5" ForeColor="blue" backcolor="white" > orientation="Vertical" > runat="server"> > <dynamichoverstyle backcolor="red" forecolor="Black"/> > > <Items> > <asp:MenuItem NavigateUrl="x.aspx?s=y" Text="Fence > Styles" Value="Fences" tooltip="x" > </asp:MenuItem> > <asp:MenuItem NavigateUrl="x.aspx?s=z" Text="Gate Styles" > Value="Gates"></asp:MenuItem> > </Items> > </asp:menu> > </form> > </body> > </html> >
DropdownList problem with internet explorer
passing data on the cleint side Firing events for child controls inside a DataGrid CustomValidator How-to link 2 Detailsview Formview child control data retrieval Retireve data with SqlDatasource & dynamically manipulate before dispalying Can a Repeater control repeat an .ascx? Windows control in .ASPX page ASP.NET vs Windows Forms for building client application |
|||||||||||||||||||||||