XhtmlConformanceSection.Mode Proprietà

Definizione

Ottiene o imposta la Mode proprietà .

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

Valore della proprietà

Uno dei XhtmlConformanceMode valori. Il valore predefinito è Transitional.

Attributi

Commenti

Per impostazione predefinita, quando si utilizzano browser che supportano HTML 4.0 o versione successiva, ASP.NET pagine e controlli eseguono il rendering del markup compatibile con lo standard XHTML 1.0 Transitional. Tuttavia, in alcune circostanze, potrebbe non essere necessario ASP.NET eseguire il rendering del markup XHTML. Questo è in genere vero quando si dispone di pagine esistenti che si basano su tag o attributi che normalmente sarebbero vietati da XHTML.

Si applica a