Version

AddXAttributeToClassName(HtmlTextWriter,String,String,String) Method

Write class to writer with extra attribute. That method can be used only for the html element of main control which has normal id.
Syntax
'Declaration
 
Public Overloads Sub AddXAttributeToClassName( _
   ByVal writer As HtmlTextWriter, _
   ByVal className As String, _
   ByVal attribute As String, _
   ByVal val As String _
) 
public void AddXAttributeToClassName( 
   HtmlTextWriter writer,
   string className,
   string attribute,
   string val
)

Parameters

writer
Writer used to output class (and id) attribute for html element
className
Original value for class attribute used by control
attribute
Attribute marker
val
Value for attribute marker
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