HtmlHelper.ValidationInputValidCssClassName Property
Gets or sets the name of the CSS class that defines the appearance of input elements when validation passes.
Namespace: System.Web.WebPages.Html
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Property ValidationInputValidCssClassName As String
Get
Set
'Usage
Dim value As String
value = HtmlHelper.ValidationInputValidCssClassName
HtmlHelper.ValidationInputValidCssClassName = value
public static string ValidationInputValidCssClassName { get; set; }
public:
static property String^ ValidationInputValidCssClassName {
String^ get ();
void set (String^ value);
}
static member ValidationInputValidCssClassName : string with get, set
static function get ValidationInputValidCssClassName () : String
static function set ValidationInputValidCssClassName (value : String)
Property Value
Type: System.String
The name of the CSS class. The default is input-validation-valid.
Remarks
To control the appearance of an <input> element that contains user input that has passed 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.