Please see my other MVC article.
Leveraging the Html form object to receive user input.
Collecting user input is one of the most common deliverables in Internet applications for which MVC provides the Html object to automatically display HTML input control matching attributes of a data Model.
First, I’ll create a new View which houses my form and exposes my TestModel supporting the fields provided to the user for input.
For each attribute of my model I want exposed to the user, I’ve provided @Html.TextBoxFor() which automatically provides the user a textbox for them to complete.