System.Web.UI.WebControls Namespace ValidationSummary Class
Sets or retrieves the color of the message displayed when validation fails.
Inline |
<asp:validationsummary foreColor = strColor ... > |
Script |
ValidationSummary.ForeColor [ = strColor ] |
strColor |
A System.Drawing.Color that represents the foreground color of the control, using any of the standard .NET color identifiers. See Color Table. |
This property is read/write and returns an empty string if not set.
ForeColor is used to specify the foreground color of the message displayed when validation fails. This property is set using a System.Drawing.Color object, the possible range of values of which are specified in this workshop's Color Table.
The following example shows how to declaratively set the ForeColor property of a validation control at design time.
<asp:validationsummary forecolor = "blue" runat = "server" ... />
ValidationSummary Members Style Formatting Validation Error Messages