Static classes with static members

  • Thread starter Thread starter Ben
  • Start date Start date
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
 
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.
 
Back
Top