¡@

Home 

c# Programming Glossary: actionfilterattribute

Prevent Caching in ASP.NET MVC for specific actions using an attribute

http://stackoverflow.com/questions/10011780/prevent-caching-in-asp-net-mvc-for-specific-actions-using-an-attribute

public sealed class NoCacheAttribute ActionFilterAttribute public override void OnResultExecuting ResultExecutingContext..

Handle ModelState Validation in ASP.NET Web API

http://stackoverflow.com/questions/11686690/handle-modelstate-validation-in-asp-net-web-api

public class ValidationActionFilter ActionFilterAttribute public override void OnActionExecuting HttpActionContext actionContext..

Async action filter in MVC 4

http://stackoverflow.com/questions/12482338/async-action-filter-in-mvc-4

is because I am using public class MyCustomActionFilter ActionFilterAttribute public override async void OnActionExecuting FilterContext context..

Detecting Session expiry on ASP.NET MVC

http://stackoverflow.com/questions/1490879/detecting-session-expiry-on-asp-net-mvc

to work for me public class SessionExpireFilterAttribute ActionFilterAttribute public override void OnActionExecuting ActionExecutingContext..

Redirect away from HTTPS with ASP.NET MVC App

http://stackoverflow.com/questions/2560615/redirect-away-from-https-with-asp-net-mvc-app

come up with the following code public class RequireHttp ActionFilterAttribute public override void OnActionExecuting ActionExecutingContext..

How to post an array of complex objects with JSON, jQuery to ASP.NET MVC Controller?

http://stackoverflow.com/questions/320291/how-to-post-an-array-of-complex-objects-with-json-jquery-to-asp-net-mvc-control

code for the JsonFilterAttribute public class JsonFilter ActionFilterAttribute public string Param get set public Type JsonDataType get set..

How to pass parameters to a custom ActionFilter in ASP.NET MVC 2?

http://stackoverflow.com/questions/4348071/how-to-pass-parameters-to-a-custom-actionfilter-in-asp-net-mvc-2

ActionFilter looks like this public class CheckLoggedIn ActionFilterAttribute public IGenesisRepository gr get set public Guid memberGuid.. the Filter I ended up using public class CheckLoggedIn ActionFilterAttribute public override void OnActionExecuting ActionExecutingContext.. looks something like public class CheckLoggedIn ActionFilterAttribute public IGenesisRepository gr get set public Guid memberGuid..

ASP.NET MVC3 + ActionFilterAttribute + Injection?

http://stackoverflow.com/questions/4839293/asp-net-mvc3-actionfilterattribute-injection

MVC3 ActionFilterAttribute Injection Hey there I've succesfull been able to use property.. current code AuthAttribute.cs public class AuthAttribute ActionFilterAttribute public Roles _authRoles get private set Inject private readonly.. an IoC container with testing public class AuthAttribute ActionFilterAttribute public Roles _authRoles get private set Inject private readonly..

Redirect From Action Filter Attribute

http://stackoverflow.com/questions/5453338/redirect-from-action-filter-attribute

Attribute What is the best way to do a redirect in an ActionFilterAttribute . I have an ActionFilterAttribute called IsAuthenticatedAttributeFilter.. to do a redirect in an ActionFilterAttribute . I have an ActionFilterAttribute called IsAuthenticatedAttributeFilter and that checked the value..

Can gzip compression be selectively disabled in ASP.NET/IIS 7?

http://stackoverflow.com/questions/5656332/can-gzip-compression-be-selectively-disabled-in-asp-net-iis-7

provide the gzipping functionality public class GzipFilter ActionFilterAttribute public override void OnActionExecuted ActionExecutedContext..

Injecting dependencies into ASP.NET MVC 3 action filters. What's wrong with this approach?

http://stackoverflow.com/questions/7192543/injecting-dependencies-into-asp-net-mvc-3-action-filters-whats-wrong-with-this

an instance of that service public class MyActionFilter ActionFilterAttribute private IMyService _myService How do we get this injected public.. coupling with the container public class MyActionFilter ActionFilterAttribute private IMyService _myService public MyActionFilter this MyStaticKernel.Get.. Allow me to demonstrate public class MyActionFilter ActionFilterAttribute private IMyService _myService public MyActionFilter this DependencyResolver.Current.GetService..