ASP.NET BackColorProperties
Web Controls Standard Properties Reference
Definition and Usage
The BackColor property is used to set or return the background color of a control.
Syntax
<asp:webcontrol id="id" BackColor="color" runat="server" />
| Property | Description |
|---|---|
| color | The color to set as the background color of the control. Must be a validHTML color。 |
Example
The following example sets the background color of a button:
<form runat="server">
<asp:Button id="button1" Text="Submit"
BackColor="#E0FFFF" runat="server" />
</form>
<asp:Button id="button1" Text="Submit"
BackColor="#E0FFFF" runat="server" />
</form>
Demo »
Web Controls Standard Properties Reference Other Extensions