Obtains the corresponding System.Web.UI.HtmlTextWriterAttribute enumeration value for the specified attribute.
- attrName
- A string that contains the attribute for which to obtain the System.Web.UI.HtmlTextWriterAttribute.
The System.Web.UI.HtmlTextWriterAttribute enumeration value for the specified attribute; otherwise, an invalid System.Web.UI.HtmlTextWriterAttribute value if the attribute is not a member of the enumeration.
If attrName is null or an empty string (""), or cannot be found in the table of attribute names, the value -1, typed to an System.Web.UI.HtmlTextWriterAttribute object, is returned.