Static classes with static members

B

Ben

Do static classes with static members persist between page hits in asp.net?
I'm seeing some very weird behavior and that might explain it. I'm not
really sure the best way to test it, so I thought I'd ask :)

TIA,
Ben
 
J

John Saunders

Ben said:
Do static classes with static members persist between page hits in asp.net?
I'm seeing some very weird behavior and that might explain it. I'm not
really sure the best way to test it, so I thought I'd ask :)

They should exist between page hits, but not over AppDomain restarts. For
instance, when you change the web.config, the AppDomain will be destroyed,
including your statics.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top