开发者

ASP.NET MVC 3 FilterAttribute - setting a variable that will be accessible in the Controller

开发者 https://www.devze.com 2023-02-25 03:13 出处:网络
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 th

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号