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

ASP.NET ForeColor Property

ASP.NET ForeColor Property


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


Definition and Usage

The ForeColor property is used to set or return the foreground color of the control (usually the color of the text).

Syntax

webcontrol

id="

id

" ForeColor=

"color"

runat="server"

/>

 

property Description
color The color set as the foreground color of the control. Must be a valid HTML color。

Example

The following example sets the foreground color of a button:

ForeColor="#FF0000" runat="server" />

Demo Example »


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