Редагувати

Поділитися через


XhtmlConformanceSection.Mode Property

Definition

Gets or sets the Mode property.

public:
 property System::Web::Configuration::XhtmlConformanceMode Mode { System::Web::Configuration::XhtmlConformanceMode get(); void set(System::Web::Configuration::XhtmlConformanceMode value); };
[System.Configuration.ConfigurationProperty("mode", DefaultValue=System.Web.Configuration.XhtmlConformanceMode.Transitional)]
public System.Web.Configuration.XhtmlConformanceMode Mode { get; set; }
[<System.Configuration.ConfigurationProperty("mode", DefaultValue=System.Web.Configuration.XhtmlConformanceMode.Transitional)>]
member this.Mode : System.Web.Configuration.XhtmlConformanceMode with get, set
Public Property Mode As XhtmlConformanceMode

Property Value

One of the XhtmlConformanceMode values. The default is Transitional.

Attributes

Remarks

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.

Applies to