开发者

asp.net 3.5 Request variables?

开发者 https://www.devze.com 2023-01-14 11:10 出处:网络
I\'m looking for a Per Request place to store some variables. I thought there was a name/value dictionary on HttpRequest, but I don\'t see one (besides Cookies or ServerVariables).This App is .Net 3.5

I'm looking for a Per Request place to store some variables. I thought there was a name/value dictionary on HttpRequest, but I don't see one (besides Cookies or ServerVariables). This App is .Net 3.5.

Can anyone suggest a Per Reque开发者_开发百科st storage area?

--Thanks


HttpContext.Items is a per-request store. If you don't already have reference to the context, you can access the current context via System.Web.HttpContext.Current.Items.

0

精彩评论

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