|
|
Stories recently tagged with 'ActionFilter'
|
|
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
|
category: ASP.NET | Views: 143
|
|
tags:
Web, MVC, ActionFilter, ASP.NET, ASPNETMVC | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
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...
1 comment
|
category: ASP.NET | Views: 26
|
|
tags:
MVC, Validation, Preconditions, C#, Attributes | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 4 months, 16 days ago, submitted by
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
|
category: ASP.NET | Views: 14
|
|
tags:
CoderJournal, ActionFilter, CAPTCHA, ASP.NET, MVC | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
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
|
category: ASP.NET | Views: 8
|
|
tags:
ActionFilter, MVC, ASP.NET | tag it
Everyones tags: | Your tags: | |
|
|
|
|

Sponsored Link: www.carlist.ie
Ads via The Lounge
|