![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
CssClass Property | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > CartoDisplay Class : CssClass Property |
Visual Basic (Declaration) | |
---|---|
Public Overrides Property CssClass As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CartoDisplay Dim value As String instance.CssClass = value value = instance.CssClass |
C# | |
---|---|
public override string CssClass {get; set;} |
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:
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
<asp:TextBox id="TextBox1" ForeColor="Red" CssClass="class1" />The following HTML is rendered on the client for the previous Web server control declaration:
<input type=text class="class1" style="ForeColor:red">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
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family