Free Trial Buy Now

Common Features - Model Validation

Update
Clear

The following validation rules are defined in this demo: Name: required, must be under 50 characters; Age: required, must be between 18 and 100; Email: required, must fit email regular expression; Arrival Date: required

Description

What is "Model Validation"? See this MSDN article to learn how the model validation works: How to: Validate Model Data Using DataAnnotations Attributes

This demo illustrates how user input can be easily validated using a model-based ASP.NET MVC validation approach. DevExpress MVC Extensions can be seamlessly integrated into the ASP.NET MVC validation infrastructure.

DevExpress MVC Editors have their own container for displaying validation error messages, which can be enabled via the ShowModelErrors property. This container allows you to manipulate validation messages more flexibly, then via the standard Html.ValidationMessageFor helper. You can control how errors should be displayed within editors by using settings exposed via the editor ValidationSettings property, such as the ValidationSettings.ErrorDisplayMode.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress MVC Extensions ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.