Chapter 11. Views

Seen from outside, web applications are black boxes that convert requests into responses: URLs go in, and HTML comes out. Routing, controllers, and actions are important parts of ASP.NET MVC's internal machinery, but it would all be for nothing if you didn't produce some HTML. In MVC architecture, views are responsible for constructing that completed output.

You've seen views at work in many examples already, so you know roughly what they do. It's now time to focus and clarify that knowledge. By reading this chapter, you'll learn about

  • How .aspx view pages, inline code blocks, and automatic HTML-encoding work behind the scenes

  • The framework's wide range of built-in HTML helper methods

  • How to create reusable view segments called ...

Get Pro ASP.NET MVC 2 Framework now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.