Export (0) Print
Expand All
Expand Minimize

MenuRenderingMode Enumeration

Specifies whether the Menu control renders HTML table elements and inline styles, or listitem elements and cascading style sheet (CSS) styles.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public enum MenuRenderingMode

Member nameDescription
DefaultThe Menu control renders markup in the way it does by default for the version of ASP.NET indicated by the RenderingCompatibility property of the control. If the value of the RenderingCompatibility property is 3.5, this setting is equivalent to Table. If the value of the RenderingCompatibility property is 4.0 or greater, this setting is equivalent to List.
ListThe Menu control renders markup by using list item (li) elements and CSS styles.
TableThe Menu control renders markup by using table elements and inline styles.

You use the MenuRenderingMode enumeration when you set the RenderingMode property of the Menu control. The value that you assign to the RenderingMode property determines how the Menu control renders markup.

In ASP.NET 3.5 and earlier versions, the Menu control uses HTML table elements and inline styles to control the appearance of the menu in a browser. In ASP.NET 4 and later versions, by default the Menu control uses listitem elements and cascading style sheet (CSS) styles. This enumeration is provided for backward compatibility. In ASP.NET 4 and later versions, you can use this enumeration to specify that you want the menu control to generate markup the way it does in earlier versions of ASP.NET.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft