Monthly Archives: September 2009

ASP.NET MVC Model Binding Form Inputs To Action Parameters

The conventions followed by asp.net mvc for model binding are volatile to my brain for some reason. Here is a summary of the different ways to bind input fields to action parameters. Assuming the following class: public class Person { public string Name; public string Email; } Binding a Custom type <%= Html.TextBox("Name") %> <%= [...]