System.Web.UI.HtmlTextWriter.IsAttributeDefined Method

Determines whether the specified markup attribute and its value are rendered during the next call to the erload:System.Web.UI.HtmlTextWriter.RenderBeginTag method.

Syntax

protected bool IsAttributeDefined (HtmlTextWriterAttribute key)

Parameters

key
The System.Web.UI.HtmlTextWriterAttribute associated with the markup attribute.

Returns

true if the attribute is rendered during the next call to the erload:System.Web.UI.HtmlTextWriter.RenderBeginTag method; otherwise, false.

Remarks

To obtain the value to be assigned to the System.Web.UI.HtmlTextWriterAttribute object, use the HtmlTextWriter.IsAttributeDefined(HtmlTextWriterAttribute, String@) overload instead of this one.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0