O'Reilly logo

Pro ASP.NET 4.5 in C#, Fifth Edition by Mario Szpuszta, Matthew MacDonald, 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

CHAPTER 34

image

Model Binding

In this chapter, we introduce model binding, one of the major additions to Web Forms in ASP.NET 4.5. Model binding simplifies the process of creating instances of the classes used to represent business objects in web applications and is a powerful tool for reducing errors and simplifying code-behind classes. It is closely related to data binding, which we describe in Chapter 35.

Preparing the Example Project

For this chapter, we have created a new project called Binding using the Visual Studio ASP.NET Empty Web Application project template. We started by creating a folder called Models; as we described in Chapter 6, that ...

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