Easy Tutorial
❮ Aspnet Ref Htmlcontrols Prop Webcontrol Radiobuttonlist Repeatcolumns ❯

ASP.NET BackColor Property



Definition and Usage

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

Syntax

Property Description
color The color to set as the control's background color. Must be a valid HTML color

Example

The following example sets the background color of a button:


Try It - Demo

Set the Background Color of a Button Control (with declaration and script)


❮ Aspnet Ref Htmlcontrols Prop Webcontrol Radiobuttonlist Repeatcolumns ❯