开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜