[Webform] Loading classes

  • Thread starter sebastien.varoteaux
  • 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
 
J

Josh Wolf

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.
 

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.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top