Stories recently tagged with 'modelbinder'

How to use the ASP.NET MVC ModelBinder(weblogs.asp.net)

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

The new ModelBinder in ASP.NET MVC provides the ability to create complex types from component parts that (for example) may be part of submitting large forms with many fields. This tutorial allows programmers to get a feel working with ModelBinder and explore their many uses. read more...

add a comment |category: |Views: 32

tags: another

Creating a generic Linq to SQL ModelBinder for the ASP.NET MVC framewo(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 3 years, 6 months ago

How about this action method, using a Person class which is a Linq to SQL entity type. It accepts a Person object as a parameter. The Person class is a Linq to SQL entity type. It's cleaner not to use the Linq to SQL data context here! Using the ASP.NET MVC ModelBinder infrastructure, I am actually able to bind action method parameters to real objects, based on simple query string parameters like, in this case, id. A custom ModelBinder maps this string id to a real Person instance from my Linq to SQL DataContext. Let me show you how I've created this ModelBinder. read more...

add a comment |category: |Views: 122

tags: another