ASP.NET MVC 3 FilterAttribute - setting a variable that will be accessible in the Controller
In a FilterAttribute I am making in MVC3, I want to开发者_开发问答 set a variable that will be accessible inside my Controller. How can I do this? Is it possible? Thank you.
You could put your value in the Items
collection of the HttpContext
object.
精彩评论