MVC: Providing an Input Form

Please see my other MVC articles.

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.

1-MVC-4-Providing-an-Input-Form 2-MVC-4-Providing-an-Input-Form 3-MVC-4-Providing-an-Input-Form

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s