ESRI.ArcGIS.ADF.Web.UI.WebControls
CssClass Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > CartoDisplay Class : CssClass Property


Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.

Syntax

Visual Basic (Declaration) 
Public Overrides Property CssClass As String
Visual Basic (Usage)Copy Code
Dim instance As CartoDisplay
Dim value As String
 
instance.CssClass = value
 
value = instance.CssClass
C# 
public override string CssClass {get; set;}

Remarks

Use the CssClass property to specify the CSS class to render on the client for the Web Server control. This property will render on browsers for all controls. It will always be rendered as the class attribute, regardless of the browser. For example, suppose you have the following Web server control declaration:

The following HTML is rendered on the client for the previous Web server control declaration:

Note: On browsers that do not support CSS, setting the CssClass property will have no effect.

Note: if the border-width style is used in the CssClass that is specified in the CssClass property, then the value specified in the Css Class will also need to specified in the BorderWidth property for the ArcGIS Server WebControls to work correctly. The value that is in the CssClass will override the BorderWidth property setting. override

See Also

© 2010 All Rights Reserved.