Version

AddXAttribute(HtmlTextWriter,String,String) Method

Writes an attribute string to the specified HtmlTextWriter. The string is initially encoded into the id atttribute and to conform to XHTML standards, and is then decoded on the client and applied as an attribute to the corresponding element. Note: If not DesignMode, then before call to that method owner of this RunBot should call InitializeXAttributes() before every Render.
Syntax
'Declaration
 
Protected Overloads Sub AddXAttribute( _
   ByVal writer As HtmlTextWriter, _
   ByVal attribute As String, _
   ByVal value As String _
) 
protected void AddXAttribute( 
   HtmlTextWriter writer,
   string attribute,
   string value
)

Parameters

writer
The HtmlTextWriter where the attribute will be added.
attribute
The string name of the attribute.
value
The value of the attribute to be written.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also