Panel.SupportsDisabledAttribute 屬性
定義
public:
virtual property bool SupportsDisabledAttribute { bool get(); };
public override bool SupportsDisabledAttribute { get; }
member this.SupportsDisabledAttribute : bool
Public Overrides ReadOnly Property SupportsDisabledAttribute As Boolean
屬性值
true
如果 RenderingCompatibility 屬性指出 ASP.NET 的版本低於 4.0
,則為,否則為 false
。true
if the RenderingCompatibility property indicates an ASP.NET version lower than 4.0
; otherwise, false
.
備註
這個屬性會指出當控制項停用時,ASP.NET 應該如何呈現控制項的 HTML。This property indicates how ASP.NET should render HTML for a control when the control is disabled. 如果這個屬性為 true
,ASP.NET disabled
會在控制項停用時轉譯屬性。If this property is true
, ASP.NET renders a disabled
attribute when a control is disabled. 如果這個屬性為 false
,ASP.NET class
會在控制項停用時轉譯屬性。If this property is false
, ASP.NET renders a class
attribute when a control is disabled. 如需詳細資訊,請參閱WebControl.SupportsDisabledAttribute。For more information, see WebControl.SupportsDisabledAttribute.