CHAPTER 24

image

Model Binding

Model binding is the process of creating .NET objects using the data sent by the browser in an HTTP request. I have been relying on the model binding process each time I have defined an action method that takes a parameter. The parameter objects are created through model binding from the data in the request. In this chapter, I’ll show you how the model binding system works and demonstrate the techniques required to customize it for advanced use. Table 24-1 provides the summary for this chapter.

Table 24-1. Chapter Summary

Problem

Solution

Listing

Bind to a simple type or a collection

Add a parameter to an action ...

Get Pro ASP.NET MVC 5, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.