Skip to Content
Pro ASP.NET Core MVC 2
book

Pro ASP.NET Core MVC 2

by Adam Freeman
October 2017
Intermediate to advanced content levelIntermediate to advanced
1024 pages
27h 39m
English
Apress
Content preview from Pro ASP.NET Core MVC 2

© Adam Freeman 2017

Adam Freeman, Pro ASP.NET Core MVC 2, https://doi.org/10.1007/978-1-4842-3150-0_27

27. Model Validation

Adam Freeman

(1)London, UK

In the previous chapter, I showed you how MVC creates model objects from HTTP requests through the model binding process. Throughout that chapter, I worked on the basis that the data the user supplied was valid. The reality is that users will often enter data that isn’t valid and cannot be used, which leads me to the topic of this chapter: model validation.

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

The first part ...

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

Pro Entity Framework Core 2 for ASP.NET Core MVC

Pro Entity Framework Core 2 for ASP.NET Core MVC

Adam Freeman

Publisher Resources

ISBN: 9781484231500Purchase bookPublisher Website