System.Web.UI.HtmlTextWriter.GetAttributeName Method

Obtains the name of the markup attribute associated with the specified System.Web.UI.HtmlTextWriterAttribute value.

Syntax

protected string GetAttributeName (HtmlTextWriterAttribute attrKey)

Parameters

attrKey
The System.Web.UI.HtmlTextWriterAttribute to obtain the markup attribute name for.

Returns

A string containing the name of the markup attribute.

Remarks

The HtmlTextWriter.GetAttributeName(HtmlTextWriterAttribute) method returns an empty string (""), if attrKey is not a valid System.Web.UI.HtmlTextWriterAttribute value.

Requirements

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