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.

Chapter 21: Helper Methods<br />

Preparing the Example Project<br />

Setting the Start URL<br />

Testing the Example Application<br />

Creating Custom Helper Methods<br />

Creating an Inline Helper Method<br />

Creating an External Helper Method<br />

Managing String Encoding in a Helper Method<br />

Using the Built-In Form Helper Methods<br />

Creating Form Elements<br />

Specifying the Route Used by a Form<br />

Using Input Helpers<br />

Creating Select Elements<br />

Summary<br />

Chapter 22: Templated Helper Methods<br />

Preparing the Example Project<br />

Using Templated Helper Methods<br />

Generating Label and Display Elements<br />

Using Whole-Model Templated Helpers<br />

Using Model Metadata<br />

Using Metadata to Control Editing and Visibility<br />

Using Metadata for Labels<br />

Using Metadata for Data Values<br />

Using Metadata to Select a Display Template<br />

Applying Metadata to a Buddy Class<br />

Working with Complex Type Properties<br />

Customizing the Templated View Helper System<br />

Creating a Custom Editor Template<br />

Creating a Generic Template<br />

Replacing the Built-in Templates<br />

Summary<br />

Chapter 23: URL and Ajax Helper Methods<br />

Preparing the Example Project<br />

Defining Additional CSS Styles<br />

Installing the NuGet Packages<br />

Creating Basic Links and URLs<br />

Using MVC Unobtrusive Ajax<br />

Creating the Synchronous Form View<br />

Preparing the Project for Unobtrusive Ajax<br />

Creating an Unobtrusive Ajax Form<br />

Preparing the Controller<br />

15

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

Saved successfully!

Ooh no, something went wrong!