objects are available as long as there is a reference (or the
application exists). asp.net pages are class instances that are create
at start of request, and released at end of request.
Generally objects exist only while they are in scope. After that you can no
longer rely on it being around since the garbage collector will eventually
come around and clean it up (whenever it gets around to it.)
Generally an object created in ASP.NET only lives for milliseconds while the
related page is being rendered on the server. If you need an object to live
a long time then you might consider creating a windows service with which
ASP.NET can interact.
Here's more info on windows services: http://msdn2.microsoft.com/en-us/library/aa983650(VS.71).aspx
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.