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.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
![]() | 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. |
![]() | 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. |
![]() | 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. |
![]() | 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. |

