HTTP Modules versus ASP.NET MVC Action Filters
Posted by: K. Scott Allen,
on 17 Jan 2011 |
View original | Bookmarked: 0 time(s)
ASP.NET MVC has action filters, while ASP.NET has HTTP modules. Inside their respective processing pipelines, these abstractions serve similar purposes, and I've heard the following question a few times: When should I write an HTTP module and when should I write an action filter? If you are creating an MVC application then I'll almost always recommend going with an action filter instead of an HTTP module. This is my recommendation even if the functionality you are creating is generic enough to...