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

ASP.NET BackColor Property

ASP.NET BackColor Property


Web Control Standard Attributes Reference Manual Web control standard properties reference manual


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="#E0FFFF" runat="server" />

Demo Example »


Web Control Standard Attributes Reference Manual Web control standard properties reference manual