ASP.Net Public Variable Problem

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.
 
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.
How can I solve it?
Thanks~

Thanks
James Wong
 
B

bruce barker

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)
 

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
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top