Easy Tutorial
❮ Control Button Met Websecurity Requireauthenticateduser ❯

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:


Try It - Demo

Set Text Color of Button Control (with declaration and script)


❮ Control Button Met Websecurity Requireauthenticateduser ❯