Data binding view values to an array parameter in ASP.NET MVC

added by leniel
2/13/2013 11:32:31 AM

0 Kicks, 107 Views

This looks like something so easy to be done and at the same time I guess a lot of people fail the first time they try to get this working. So to help the fellow developers out there I put together a concise ASP.NET MVC 4 sample application hosted at GitHub. It shows how to data bind/postback view values to a single array parameter or a ViewModel array parameter in an controller action method. I show two ways of doing this: using a traditional/full postback and an AJAX/partial postback. This way you can choose the best option for you.


0 comments