XhtmlConformanceSection.Mode Property

 

Gets or sets the Mode property.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("mode", DefaultValue := XhtmlConformanceMode.Transitional)>
Public Property Mode As XhtmlConformanceMode

Property Value

Type: System.Web.Configuration.XhtmlConformanceMode

One of the XhtmlConformanceMode values. The default is Transitional.

By default, when you are working with browsers that support HTML 4.0 or later, ASP.NET pages and controls render markup that is compatible with the XHTML 1.0 Transitional standard. However, under some circumstances, you might not want ASP.NET to render XHTML markup. This is typically true when you have existing pages that rely on tags or attributes that would ordinarily be prohibited by XHTML.

.NET Framework
Available since 2.0
Return to top
Show: