The CssClass property does not affect the MenuLabelHoverStyle, MenuPopupStyle, MenuVerbHoverStyle, MenuVerbStyle, and MenuCheckImageStyle properties in ASP.NET 2.0 (911717)
The information in this article applies to:
SYMPTOMSConsider the following scenario: - In Microsoft ASP.NET 2.0, you try to use a style object of the System.Web.UI.WebControls.WebParts.WebPartZoneBase class.
- You try to assign the style
object by using the CssClass property.
- You try to use the style object in the WebPartZone server control.
In this scenario, the style does not change as expected. Specifically, the CssClass property does not affect the following style objects:
- The MenuLabelHoverStyle property
- The MenuPopupStyle property
- The MenuVerbHoverStyle property
- The MenuVerbStyle property
- The MenuCheckImageStyle property
WORKAROUNDTo work around this problem, use inline style
attributes for these style objects instead of using the external CssClass property. For example, do not use the following line of code. <MenuPopupStyle CssClass="wp_menupopup" />
Note In this example, wp_menupopup is the class name of a style rule that defines the
background color for elements. Instead, use the following line of code. <MenuPopupStyle backcolor="red" /> REFERENCESFor more information about the Microsoft .NET Framework class library
WebPartZoneBase class, visit the following Microsoft Developer Network (MSDN) Web site: For more information about the .NET Framework class library
WebPartZone class, visit the following MSDN Web site:
Modification Type: | Minor | Last Reviewed: | 3/2/2006 |
---|
Keywords: | kbtshoot kbbug KB911717 kbAudDeveloper kbAudITPRO |
---|
|