Chapter 4. The view in depth

This chapter covers

  • Rendering views

  • Techniques for working with ViewData

  • Error reporting

  • Handling complexity

Views have long been abused in the Microsoft web application space. In Classic ASP, and in IDC/HTX before that, the view was the primary programming tool for the Microsoft-centric developer. Using the Server Page pattern, developers used IDC and ASP pages as transaction scripts to perform a single operation and render a screen. Each page has logic, behavior, and a UI. ASP.NET 1.0 sought to separate logic from the UI rendering to make applications easier to maintain and extend, because having logic intermixed with screen rendering had often proved to be an unworkable solution for many teams. Although it certainly ...

Get ASP.NET MVC in Action 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.