Chapter 6. Validation

 

This chapter covers
  • Implementing Data Annotations
  • Extending the ModelMetadataProvider
  • Enabling client-side validation
  • Creating custom client side validators

 

We covered models in the previous chapter, and we’ll continue our examination of the M in MVC by looking at advanced scenarios related to models enabled by ASP.NET MVC. The framework provides support for rich and extensible user input validation. Validation support in the framework is important because user feedback is a common requirement in web applications. It makes sense for the framework to enable things most projects need.

Validation is a big feature in ASP.NET MVC, but it has grown over time. In the first version of the framework it was absent, and integrating ...

Get ASP.NET MVC 4 in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.