.NET Framework Class Library
WebControlHasAttributes Property

Gets a value indicating whether the control has attributes set.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)
Syntax
<[%$TOPIC/wc88z3zt_en-us_VS_110_1_0_0_0_0%](False)> _
Public ReadOnly Property HasAttributes As [%$TOPIC/wc88z3zt_en-us_VS_110_1_0_0_0_1%]
[[%$TOPIC/wc88z3zt_en-us_VS_110_1_0_1_0_0%](false)]
public [%$TOPIC/wc88z3zt_en-us_VS_110_1_0_1_0_1%] HasAttributes { get; }
[[%$TOPIC/wc88z3zt_en-us_VS_110_1_0_2_0_0%](false)]
public:
property [%$TOPIC/wc88z3zt_en-us_VS_110_1_0_2_0_1%] HasAttributes {
	[%$TOPIC/wc88z3zt_en-us_VS_110_1_0_2_0_2%] get ();
}
[<[%$TOPIC/wc88z3zt_en-us_VS_110_1_0_3_0_0%](false)>]
member HasAttributes : [%$TOPIC/wc88z3zt_en-us_VS_110_1_0_3_0_1%] with get
function get HasAttributes () : [%$TOPIC/wc88z3zt_en-us_VS_110_1_0_4_0_0%]

Property Value

Type: SystemBoolean
true if the control has attributes set; otherwise, false.
Remarks

The HasAttributes property returns true when the WebControl instance has attribute name/value pairs. The attribute pairs can be set either in the property or in the view state.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0