Skip to Main Content
Pro ASP.NET MVC 4, Fourth Edition
book

Pro ASP.NET MVC 4, Fourth Edition

by Adam Freeman
January 2013
Beginner to intermediate content levelBeginner to intermediate
756 pages
19h 59m
English
Apress
Content preview from Pro ASP.NET MVC 4, Fourth Edition

CHAPTER 16

Image

Filters

Filters inject extra logic into MVC Framework request processing. They provide a simple and elegant way to implement cross-cutting concerns. This term refers to functionality that is used all over an application and doesn’t fit neatly into any one place, where it would break the separation of concerns pattern. Classic examples of cross-cutting concerns are logging, authorization, and caching. In this chapter, we will show you the different categories of filters that the MVC Framework supports, how to create and use filters, and how to control their execution.

Using Filters

You have already seen an example of a filter in Chapter ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional ASP.NET MVC 4

Professional ASP.NET MVC 4

Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen, Scott Hanselman
Pro ASP.NET MVC 3 Framework, Third Edition

Pro ASP.NET MVC 3 Framework, Third Edition

Adam Freeman, Steven Sanderson
Professional ASP.NET MVC 2

Professional ASP.NET MVC 2

Jon Galloway, Phil Haack, Scott Hanselman, Scott Guthrie, Rob Conery
ASP.NET MVC 4 in Action

ASP.NET MVC 4 in Action

Matthew Hinze, Jeremy Skinner, Jeffrey Palermo, James Bogard, Eric Hexter

Publisher Resources

ISBN: 9781430242369Purchase book