6 Tips for ASP.NET MVC Model Binding
Posted by: K. Scott Allen,
on 27 Apr 2009 |
View original | Bookmarked: 0 time(s)
Model binding in the ASP.NET MVC framework is simple. Your action methods need data, and the incoming HTTP request carries the data you need. The catch is that the data is embedded into POST-ed form values, and possibly the URL itself. Enter the DefaultModelBinder, which can magically convert form values and route data into objects. Model binders allow your controller code to remain cleanly separated from the dirtiness of interrogating the request and its associated environment. Here...