HtmlHelper.ValidationMessageCssClassName Property

Definition

Gets or sets the name of the CSS class that defines the appearance of validation error messages when validation fails.

public static string ValidationMessageCssClassName { get; set; }
member this.ValidationMessageCssClassName : string with get, set
Public Shared Property ValidationMessageCssClassName As String

Property Value

The name of the CSS class. The default is field-validation-error.

Applies to