Easy Tutorial
❮ Aspnet Ref Validationcontrols Prop Webcontrol Standard ❯

ASP.NET ForeColor Property



Definition and Usage

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

Syntax

Property Description
color The color to 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:


❮ Aspnet Ref Validationcontrols Prop Webcontrol Standard ❯