O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enhancing the Application

We've reached the point where we have something that functions. We can create new registrations, and they are stored in our dummy repository. Along the way, we have used the ViewBag and strongly typed views to pass data from the controller to the view, we have used helper methods to conveniently generate HTML for use in views, and we have read from and written to the repositories. In the following sections, we'll add some additional functions and features.

Using Model Binding

One of my favorite MVC features is model binding. It's a neat trick that makes it easier to process requests. When I added the action method to handle form posts, I defined a parameter for each of the input field values that I was interested in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required