I am looking for a good resource that describes very thoroughly how model binding works with ASP.NET MVC 3 (or to a lesser extent, MVC 2) and different approaches. I have not been able to find any good resources on this topic, except bits and pieces there. The information on the net is more about “how to do X” than explaining how the internals of model binding work. Any recommendations? Book recommendations are fine as well.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Take a look:
ASP.NET MVC Model Binding – Part1 and Part2
http://www.codeproject.com/KB/aspnet/AspNetMVCModelBinding.aspx
http://www.codeproject.com/KB/aspnet/AspNetMVCModelBinding2.aspx
6 Tips for ASP.NET MVC Model Binding
http://odetocode.com/blogs/scott/archive/2009/04/27/6-tips-for-asp-net-mvc-model-binding.aspx
Custom Model Binders in MVC 3 with IModelBinder
http://buildstarted.com/2010/09/12/custom-model-binders-in-mvc-3-with-imodelbinder/
Method 2
The Features and Foibles of ASP.NET MVC Model Binding – http://msdn.microsoft.com/en-us/magazine/hh781022.aspx
http://dotnetslackers.com/articles/aspnet/Understanding-ASP-NET-MVC-Model-Binding.aspx
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0