[Webform] Loading classes

  • Thread starter Thread starter sebastien.varoteaux
  • Start date Start date
S

sebastien.varoteaux

Hi,

I would like to know if it's possible to load classes when IIS starts,
or when the first internaut comes load the web application.

I would like to automatically load objects in memory (singleton).

How can i do that?

Best regards,
PiaF
 
Global.asax.cs contains an Application_Start() method that you can use
for this. The Application collection ought to be able to hold what you
want, though you may need to serialize your object first.
 
Back
Top