29.05.2015 Views

o_19mgorv9t13a3ko71fev19l81mqa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

cause whatever data is in the form to be redisplayed.<br />

Figure 21-6. Using the simple HTML form in the example application<br />

In Listing 21-16, you can see the HTML that the example MVC application has sent to the browser. I will use this to show you<br />

changes caused by helper methods.<br />

Listing 21-16. The HTML Sent to the Browser for the Example Form<br />

<br />

<br />

<br />

<br />

<br />

CreatePerson<br />

<br />

label { display: inline-block; width: 100px; }<br />

div.dataElem { margin: 5px; }<br />

<br />

<br />

<br />

CreatePerson<br />

<br />

<br />

PersonId<br />

<br />

<br />

<br />

First Name<br />

<br />

<br />

<br />

Last Name<br />

<br />

<br />

<br />

<br />

567

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!