DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

Stories recently tagged with 'ActionFilter' Subscribe to this feed
2
kicks
submitted by powerrush powerrush 27 days, 20 hours ago

blog.troyd.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... read more...

Add a comment 1 comment | category: | Views: 8
tags: , , , , | tag it

15
kicks
published 2 months ago, submitted by maartenba 2 months, 3 days ago

blog.maartenballiauw.be — 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 isn't really subject to changes a lot. This cached response is stored in the web server's memory and offers very fast responses because no additional processing is required. Using the ASP.NET MVC framework (preview 3, that is), output caching is still quite hard to do. Simply specifying the OutputCache directive in a view does not do the trick. Luckily, there's this thing called an ActionFilterAttribute, which lets you run code before and after a controller action executes. read more...

Add a comment add a comment | category: | Views: 143
tags: , , , , | tag it

3
kicks
submitted by powerrush powerrush 3 months, 15 days ago

blog.troyd.net — 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.: a valid primary key). These, I consider "preconditions". read more...

Add a comment 1 comment | category: | Views: 26
tags: , , , , | tag it

20
kicks
published 4 months, 16 days ago, submitted by zigamorph zigamorph 4 months, 16 days ago

coderjournal.com — 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, HTTP POST Only. And an attribute to provide serialization of the ViewData to XML, JSON, or JSONP. I hope it helps everybody out. read more...

Add a comment add a comment | category: | Views: 14
tags: , , , , | tag it

3
kicks
submitted by powerrush powerrush 5 months, 24 days ago

codebetter.com — 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... read more...

Add a comment add a comment | category: | Views: 8
tags: , , | tag it

 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge