ASP.NET 4.5 Preview: Using model binding to display data(weblogs.asp.net)

submitted by rcashrcash(4149) 7 months, 10 days ago

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.

5 comments |category: |Views: 34

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by NoldorinNoldorin(829) 7 months, 9 days ago 0

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.

Reply

posted by vijaystvijayst(1311) replied to NoldorinNoldorin(829), 7 months, 9 days ago 0

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.

Reply

posted by NoldorinNoldorin(829) replied to vijaystvijayst(1311), 7 months, 9 days ago 0

Ah, interesting. Not that I'm a big fan of WebForms in general, but I suppose it makes WebForms more usable. :-)

Reply

posted by dpetersondpeterson(4393) replied to NoldorinNoldorin(829), 7 months, 8 days ago 0

Certainly so, this could breathe life into production applications using WebForms that aren't ready to be upgraded to MVC.

Reply

posted by bradygasterbradygaster(4897) 7 months, 6 days ago 0

This could definitely make WebForms a little less painful.

Reply

information Login or create an account to comment on this story