What is the ASP.NET equivalent of HttpContext.Current.Items in classic ASP?

HttpContext.Current.Items

is a repository with an HTTP request lifetime.

I would like to know the classic ASP equivalent of this.

+1


a source to share


3 answers


There is no equivalent in classic ASP. To do this, you only have objects like request, response, session, application, server.



+4


a source


You can use Session to store content from page to page in a similar way:

Session ("MyVar") = "my value to save"



But there isn't as much gaps around pages in ASP as there is in .net with custom controls, etc. Could you be better off with some globals?

If you give us a little more context (no pun intended), you can better point you in the right direction.

+1


a source


A collection object with global scope will do the same thing.

0


a source







All Articles