Skip to Main Content
Pro ASP.NET MVC 4, Fourth Edition
book

Pro ASP.NET MVC 4, Fourth Edition

by Adam Freeman
January 2013
Beginner to intermediate content levelBeginner to intermediate
756 pages
19h 59m
English
Apress
Content preview from Pro ASP.NET MVC 4, Fourth Edition

CHAPTER 23

Image

Model Validation

In the previous chapter, we showed you how the MVC Framework creates model objects from HTTP requests through the model binding process. Throughout that chapter, we worked on the basis that the data the user supplied was valid. The reality is that users will often enter data that we cannot work with, which leads us to the topic of this chapter—model validation.

Model validation is the process of ensuring the data we receive is suitable for binding to our model and, when this is not the case, providing useful information to the user that will help explain the problem.

The first part of the process—checking the data ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional ASP.NET MVC 4

Professional ASP.NET MVC 4

Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen, Scott Hanselman
Pro ASP.NET MVC 3 Framework, Third Edition

Pro ASP.NET MVC 3 Framework, Third Edition

Adam Freeman, Steven Sanderson
Professional ASP.NET MVC 2

Professional ASP.NET MVC 2

Jon Galloway, Phil Haack, Scott Hanselman, Scott Guthrie, Rob Conery
ASP.NET MVC 4 in Action

ASP.NET MVC 4 in Action

Matthew Hinze, Jeremy Skinner, Jeffrey Palermo, James Bogard, Eric Hexter

Publisher Resources

ISBN: 9781430242369Purchase book