ASP.Net Public Variable Problem

  • Thread starter Thread starter James Wong
  • Start date Start date
J

James Wong

Hi,

When I run the program in debug mode, I assign some value into a public
variable.
After I restart the program again, the public variable already assign the
value.
 
Hi,

When I run the program in debug mode, I assign some value into a public
variable.
After I restart the program again, the public variable already assign the
value.
How can I solve it?
Thanks~

Thanks
James Wong
 
as public variables are shared across threads until the appdomain is
recycled, you need to recycle the site to flush them (otherwise you'd
lose session which is done a public variables). stopping and starting
debug does not do this.

-- bruce (sqlwork.com)
 
Back
Top