The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
HtmlTextWriter::GetAttributeName Method (HtmlTextWriterAttribute)
.NET Framework (current version)
Obtains the name of the markup attribute associated with the specified HtmlTextWriterAttribute value.
Assembly: System.Web (in System.Web.dll)
Parameters
- attrKey
-
Type:
System.Web.UI::HtmlTextWriterAttribute
The HtmlTextWriterAttribute to obtain the markup attribute name for.
The GetAttributeName method returns an empty string (""), if attrKey is not a valid HtmlTextWriterAttribute value.
The following code example shows how to use the GetAttributeName method to convert a Size enumeration value to its string name.
.NET Framework
Available since 1.1
Available since 1.1
Show: