ValidationHelper Methods
Include Protected Members
Include Inherited Members
The ValidationHelper type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add(IEnumerable<String>, IValidator[]) | Registers a list of user input elements for validation. | |
Add(String, IValidator[]) | Registers a user input element for validation. | |
AddFormError | Adds an error message. | |
ClassFor | Renders an attribute that references the CSS style definition to use when validation messages for the user input element are rendered. | |
Equals | (Inherited from Object.) | |
For | Renders attributes that enable client-side validation for an individual user input element. | |
GetErrors | Returns a list of current validation errors, and optionally lets you specify a list of fields to check. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IsValid | Determines whether the contents of the user input fields pass validation checks, and optionally lets you specify a list of fields to check. | |
RequireField(String) | Registers the specified field as one that requires user entry. | |
RequireField(String, String) | Registers the specified field as one that requires user entry and registers the specified string as the error message to display if no value is supplied. | |
RequireFields | Registers the specified fields as ones that require user entry. | |
ToString | (Inherited from Object.) | |
Validate | Performs validation on elements registered for validation, and optionally lets you specify a list of fields to check. |
Top