Filters in ASP.NET MVC CodePlex Preview 4

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    4 views

In Preview 2 or Preview 3 of ASP.NET (I forget which), we introduced the concept of Action Filters . Sounds much more exciting than your run-of-the-mill LayOnTheCouchMunchingChipsWatchingInfomercialsFilter , that I originally proposed to the team. Thankfully, that was rejected. An action filter is an attribute you can slap on an action method in order to run some code before and after the action method executes. Typically, an action filter represents a cross-cutting concern to your action method. Output caching is a good example of a cross-cutting concern. In CodePlex Preview 4 of ASP.NET MVC , we split out our action filters into four types of filters, each of which is an interface. IAuthorizationFilter IActionFilter IResultFilter IExceptionFilter…(read more)

Share/Save/Bookmark

1 Star2 Stars
Loading ... Loading ...

0 responses so far!

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word