HtmlHelper.ValidationInputCssClassName Property
Gets or sets the name of the CSS class that defines the appearance of input elements when validation fails.
Namespace: System.Web.WebPages.Html
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Property ValidationInputCssClassName As String
Get
Set
'Usage
Dim value As String
value = HtmlHelper.ValidationInputCssClassName
HtmlHelper.ValidationInputCssClassName = value
public static string ValidationInputCssClassName { get; set; }
public:
static property String^ ValidationInputCssClassName {
String^ get ();
void set (String^ value);
}
static member ValidationInputCssClassName : string with get, set
static function get ValidationInputCssClassName () : String
static function set ValidationInputCssClassName (value : String)
Property Value
Type: System.String
The name of the CSS class. The default is field-validation-error.
Remarks
To control the appearance of an <input> element that contains user input that has failed validation, you can define a CSS class. You can then set this property to the name of the class. At run time, the property value is set as the class attribute of the rendered <input> element.