A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.menurenderingmode below:

MenuRenderingMode Enum (System.Web.UI.WebControls) | Microsoft Learn

MenuRenderingMode Enum Definition

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

public enum class MenuRenderingMode
public enum MenuRenderingMode
type MenuRenderingMode = 
Public Enum MenuRenderingMode
Inheritance
Fields Name Value Description 0

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

1

The Menu control renders markup by using table elements and inline styles.

2

The Menu control renders markup by using list item (li) elements and CSS 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.

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4