Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Style BackColor Property

ASP.NET BackColor Property


Style Control the Style control


Definition and Usage

The BackColor property is used to set or return the background color of the control.

Syntax

webcontrol

id="

id

" BackColor=

"color"

runat="server"

/>

property Description
color The color set as the background color of the control. Must be a valid HTML color。

Example

The following example sets the background color of a button:

BackColor="#FFCC80" runat="server" />

Demo Example »


Try it - Demo

Set the Button control's background color (with declaration and script)


Style Control the Style control