Firstly just gotta say I'm completely new to ASP.Net, used to web dev in php.
[hope this makes sense, it's hard to verbalise what I want to know]
Can ASP.Net object exist outside the scope of the page/control they were instantiated in?
As in can I instantiate an object of a .net class that persists accross multiple web pages and requests? So that each request uses exactly the same object.
Example:
I have a .Net dll which contains a class that periodically reads the current performance statistics of the server (cpu, mem, disk io etc). Can this be created upon first request and all subsequent requests use the same object? or do they have to recreate the object and thus recreate all the performance counters for every request?
This can be done by a service I know, but I would prefer to minimise the installation overhead.
[hope this makes sense, it's hard to verbalise what I want to know]
Can ASP.Net object exist outside the scope of the page/control they were instantiated in?
As in can I instantiate an object of a .net class that persists accross multiple web pages and requests? So that each request uses exactly the same object.
Example:
I have a .Net dll which contains a class that periodically reads the current performance statistics of the server (cpu, mem, disk io etc). Can this be created upon first request and all subsequent requests use the same object? or do they have to recreate the object and thus recreate all the performance counters for every request?
This can be done by a service I know, but I would prefer to minimise the installation overhead.
Last edited: