ASP.NET ForeColorProperty
Web Controls Standard Property Reference Manual
Definition and Usage
The ForeColor property is used to set or return the foreground color of a control (usually the color of the text).
Syntax
<asp:webcontrol id="id" ForeColor="color" runat="server" />
| Property | Description |
|---|---|
| color | The color set as the foreground color of the control. Must be a validHTML color。 |
Example
The following example sets the foreground color of a button:
<form runat="server">
<asp:Button id="button1" Text="Submit"
ForeColor="#FF0000" runat="server" />
</form>
<asp:Button id="button1" Text="Submit"
ForeColor="#FF0000" runat="server" />
</form>
Show example »
Web Controls Standard Property Reference Manual Other Extensions