ValidationHelper Methods

Include Protected Members
Include Inherited Members

The ValidationHelper type exposes the following members.

Methods

  Name Description
Public method Add(IEnumerable<String>, IValidator[]) Registers a list of user input elements for validation.
Public method Add(String, IValidator[]) Registers a user input element for validation.
Public method AddFormError Adds an error message.
Public method ClassFor Renders an attribute that references the CSS style definition to use when validation messages for the user input element are rendered.
Public method Equals (Inherited from Object.)
Public method For Renders attributes that enable client-side validation for an individual user input element.
Public method GetErrors Returns a list of current validation errors, and optionally lets you specify a list of fields to check.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IsValid Determines whether the contents of the user input fields pass validation checks, and optionally lets you specify a list of fields to check.
Public method RequireField(String) Registers the specified field as one that requires user entry.
Public method 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.
Public method RequireFields Registers the specified fields as ones that require user entry.
Public method ToString (Inherited from Object.)
Public method Validate Performs validation on elements registered for validation, and optionally lets you specify a list of fields to check.

Top

See Also

Reference

ValidationHelper Class

System.Web.WebPages Namespace