HtmlTextWriter.AddAttribute Method (String, String, HtmlTextWriterAttribute)
.NET Framework 3.0
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.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
protected: virtual void AddAttribute ( String^ name, String^ value, HtmlTextWriterAttribute key )
protected void AddAttribute ( String name, String value, HtmlTextWriterAttribute key )
protected function AddAttribute ( name : String, value : String, key : HtmlTextWriterAttribute )
Not applicable.
Parameters
- name
A string containing the name of the attribute to add.
- value
A string containing the value to assign to the attribute.
- key
An HtmlTextWriterAttribute that represents the attribute.
Community Additions
ADD
Show: