action-filter
How to prevent replay attacks or multiple postbacks using Nonce Key in ASP.NET MVC 2.0
How to prevent replay attacks or multiple postbacks using Nonce Key in MVC 2.0 I am looking for a low level implementaion solution for this. It does not have to be a complete one, but any examples of[详细]
2023-03-08 05:42 分类:问答Can I return an action result from an action filter?
Usually I am validating my model in the action method before committing data to the database. [HttpPost][详细]
2023-03-06 08:51 分类:问答How to add an ActionFilter to a non MVC project?
I have several projects written in f/x4.0 that are not MVC.No web involved.In fact, one is a Windows Service, another is a set of Libraries used for either Win Forms or Command Line processing.Now, in[详细]
2023-03-05 12:53 分类:问答Area-global filters in MVC 3
Since it doesn\'t appear to be support开发者_StackOverflow社区ed natively, what\'s the recommended way of implementing global filters on a per-area basis?The reason it\'s not supported natively is bec[详细]
2023-02-25 08:21 分类:问答Bind a Global Action Filter to all Controllers in an Area using MVC 3 Dependency Injection with Ninject 2.2
I was able to to use ASP.NET MVC 3 and Ninject 2.2 to inject a logger object into a custom ActionFilterAttribute thanks to the help I received in this post.[详细]
2023-02-21 03:54 分类:问答MVC 3 Dependency Injection with Ninject 2.2 + Global Action Filter
I am trying to use ASP.NET MVC 3 and Ninject 2.2 to inject a logger object into a custom ActionFilterAttribute.[详细]
2023-02-19 16:26 分类:问答UnitOfWork in Action Filter seems to be caching
I have an MVC 3 site that uses IoC (Unity), and my model is generated w/ EF4 and POCOs. I am using an action filter to commit my UnitOfWork:[详细]
2023-02-17 03:51 分类:问答Enforce security check in ASP.NET MVC?
I am implementing a collaborative web gallery, and I have a few roles for each user: Admin DeleteImage DeleteOwnImage[详细]
2023-02-15 10:28 分类:问答Best way to abort/cancel action and response from ActionFilter
Best way to abort/cancel action from ActionFilter I\'ve got this Acti开发者_JS百科onFilter, and it\'s suppose to end the connection immediately and return a 401 Unauthroized:[详细]
2023-02-14 12:27 分类:问答No trailing slash in hostname, HttpResponse.RemoveOutputCacheItem doesn't work
I\'m in a bit of a pickle here. I have an action for which the output is fairly static, until another action is used to update the datasource for the first action. I use HttpResponse.RemoveOutputCac[详细]
2023-02-11 21:44 分类:问答