System.Web.UI.WebControls.BaseValidator.ForeColor Property

Gets or sets the color of the message displayed when validation fails.

Syntax

[System.ComponentModel.DefaultValue(typeof(System.Drawing.Color), "Red")]
public override System.Drawing.Color ForeColor { set; get; }

Value

a System.Drawing.Color

Remarks

Use the BaseValidator.ForeColor property to specify a custom text color for the message displayed in the validation control when validation fails.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0