ASP.NET 4.5 Preview: Using model binding to display data

added by rcash
10/14/2011 10:17:29 AM

415 Views

ASP.NET Forms 4.5 Preview introduces us model binding for web forms. Web developers who are familiar with ASP.NET MVC already know what model binding is and how powerful it is. Model binding means framework ability to construct objects of known types using values from presentation layer. In this posting I will show you how to use model binding with ASP.NET Forms 4.5.


4 comments

Noldorin
10/14/2011 3:09:38 PM
I'm slightly confused... this post doesn't look like it's about MVC -- is it trying to bring MVC practices to ASP.NET WebForms? If so, that's cool.

vijayst
10/14/2011 9:22:42 PM
Yes, Model binding is now part of WebForms. This post actually describes how models are bound to controls.

There are some more examples, which explains how to create Models out of Querystring and Postbackdata.

Noldorin
10/14/2011 9:24:18 PM
Ah, interesting. Not that I'm a big fan of WebForms in general, but I suppose it makes WebForms more usable. :-)

dpeterson
10/15/2011 9:46:09 PM
Certainly so, this could breathe life into production applications using WebForms that aren't ready to be upgraded to MVC.

bradygaster
10/17/2011 6:11:44 AM
This could definitely make WebForms a little less painful.