By tag: ActionFilter
0
kicks
Using PreconditionFilter with the new HandleErrorAttribute in ASP.NET
An example of how to use Precondition Filters in conjunction with HandleErrorAttribute to provide user-friendly error pages when users try to link to your URLs with invalid route data, query strings, etc...
0
kicks
Creating an ASP.NET MVC OutputCache ActionFilterAttribute
This blog post explains how to create an OutputCache ActionFilterAttribute to enable server-side and client-side caching.
In every web application, there are situations where you want to cache the HTML output of a specific page for a certain amount of time, because underlying data and processing ...
0
kicks
ASP.NET MVC Controller Action Precondition Filter
Here is code that will allow you to decorate your MVC Actions with attributes that will define your needed "preconditions".
I often find the need to check for the existence of a parameter passed to a web page, such as an ID, and also often need to check if the ID is valid as well (e.g.:...
0
kicks
Coder Journal's MVC Toolkit
Today I decided to release a toolkit that I have been building over the past couple of months. Most of the code in the toolkit is related to MVC. The list of features includes many MVC ActionFilters, Routes, ViewEngines, and Extensions. Including ActionFilters for Cache, GZip Compression, CAPTCHA, ...
0
kicks
New ActionFilterAttribute in ASP.NET MVC Framework
I remember Scott Guthrie mentioning the ability to add filters to your controller actions, so immediately after downloading the ASP.NET MVC Framework Preview 2 I opened up Reflector and found a new ActionFilterAttribute in System.Web.Mvc...