Chapter 6. Customizing and extending the ASP.NET MVC Framework

This chapter covers

  • Customizing route handlers

  • Creating your own controller factory

  • Extending the controller

  • Decorating controller actions for additional behavior

  • Building and using custom view engines

One of the greatest aspects of ASP.NET MVC is its flexibility. The majority of the framework is built upon interfaces and abstract base classes, which enables unit testing of components in isolation. This also gives us the ability to substitute our own implementations of these features. ASP.NET MVC comes with functional default implementations, but sometimes these don’t meet our needs. Sometimes we don’t agree with the choices that Microsoft bakes in, and by customizing these components we ...

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.