C H A P T E R  26

Using HTML Helpers and Templates

The previous chapter introduced you to Razor and showed you how you can create views in an MVC framework application to render results for a request. This chapter will show how to inject content into a view using helpers. Chapter 23 already touched on HTML helper methods, but this chapter will cover them in detail, show you some other kinds of helpers, and explain how templates fit into the picture.

images Note The HTML helpers are not the only helpers in the MVC framework. Chapter 27 will show you the URL helpers, which are used to generate URLs in views, and Chapter 30 will explain the Ajax helpers, ...

Get Applied ASP.NET 4 in Context now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.