Change Theme Settings
Change Theme Settings
Show All Themes


Cannot be “admin”, cannot contain spaces
Must be between 18 and 100
E.g. +1 (789) 555-1234
Must be a valid email

This demo illustrates how to use the Unobtrusive ASP.NET MVC validation approach to validate a user’s input. To attach validation rules to input fields, add DataAnnotations attributes to model class properties. For example, the "CreditCardAttribute" validates a field value as a credit card number.

DevExpress MVC Data Editors provide a container for validation error messages. Use the ShowModelErrors property to specify whether data editors display error messages if validation fails. The ValidationSettings property allows you to control how errors are displayed.

Refer to the following online examples for information about other validation approaches:

See Also: