Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asp.net 3.5 Request variables?

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 Request storage area?

--Thanks

like image 896
Chris Avatar asked Sep 02 '10 15:09

Chris


1 Answers

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.

like image 136
Matti Virkkunen Avatar answered Nov 15 '22 03:11

Matti Virkkunen