This topic has not yet been rated - Rate this topic

HtmlTextWriter.AddAttribute Method

Adds the specified markup attribute and value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method AddAttribute(HtmlTextWriterAttribute, String) Adds the markup attribute and the attribute value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method.
Public method AddAttribute(String, String) Adds the specified markup attribute and value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method.
Public method AddAttribute(HtmlTextWriterAttribute, String, Boolean) Adds the markup attribute and the attribute value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method, with optional encoding.
Public method AddAttribute(String, String, Boolean) Adds the specified markup attribute and value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method, with optional encoding.
Protected method AddAttribute(String, String, HtmlTextWriterAttribute) Adds the specified markup attribute and value, along with an HtmlTextWriterAttribute enumeration value, to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ