Version

CssClass Property (BaseChildControl)

Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.
Syntax
'Declaration
 
Public Overrides Property CssClass As String
public override string CssClass {get; set;}

Property Value

The CSS class rendered by the control on the client. The default is String.Empty.
Remarks

Use the CssClass property to specify the CSS class to render on the client for the control. This property will render on browsers for all controls. It will always be rendered as the class attribute, regardless of the browser.

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