ASP.NET ForeColor Property
Definition and Usage
The ForeColor property is used to set or return the foreground color of the control.
Syntax
<asp:webcontrol id="id" ForeColor="color" runat="server" />
Value | Description |
---|---|
color | Set the foreground color of the control. It must be a valid HTML color. |
Example
This example sets the foreground color of the button:
<form runat="server"> <asp:Button id="button1" Text="Submit" ForeColor="#FF0000" runat="server" /> </form>
Example
- Set the foreground color of the button control