CompositeControl.SupportsDisabledAttribute 屬性

定義

取得值,這個值表示當控制項的 disabled 屬性為 IsEnabled 時,控制項是否應該將呈現之 HTML 項目的 false 屬性設為 "disabled"。

public:
 virtual property bool SupportsDisabledAttribute { bool get(); };
public override bool SupportsDisabledAttribute { get; }
member this.SupportsDisabledAttribute : bool
Public Overrides ReadOnly Property SupportsDisabledAttribute As Boolean

屬性值

Boolean

true如果 RenderingCompatibility 屬性指出 ASP.NET 的版本低於4.0,則為,否則為 false

備註

這個屬性會指出當控制項停用時,ASP.NET 應如何呈現控制項的 HTML。 如果這個屬性為 true ,ASP.NET disabled 當控制項停用時,就會呈現屬性。 如果這個屬性為 false ,ASP.NET class 當控制項停用時,就會呈現屬性。 如需詳細資訊,請參閱WebControl.SupportsDisabledAttribute

適用於

另請參閱