XhtmlConformanceSection.Mode 屬性

定義

取得或設定該 Mode 屬性。

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

屬性值

這是其中一項 XhtmlConformanceMode 價值。 預設值為 Transitional

屬性

備註

預設情況下,當你使用支援 HTML 4.0 或更新版本的瀏覽器時,ASP.NET 頁面與控制項的渲染標記會與 XHTML 1.0 過渡標準相容。 不過,在某些情況下,你可能不希望 ASP.NET 呈現 XHTML 標記。 這通常適用於現有頁面依賴 XHTML 通常禁止的標籤或屬性。

適用於