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 9

Image

SportsStore: Completing the Cart

In this chapter, we continue to build out our SportsStore example app. In the previous chapter, we added the basic support for a shopping cart and now we are going to improve on and complete that functionality.

Using Model Binding

The MVC Framework uses a system called model binding to create C# objects from HTTP requests in order to pass them as parameter values to action methods. This is how MVC processes forms, for example. The framework looks at the parameters of the action method that has been targeted, and uses a model binder to get the values of the form input elements and convert them to the ...

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