G
Guest
Hi All,
I'm a beginner with ASP.Net so please bear with me. I'm having difficulties
trying to understand the behaviour of static variable across multiple ASP.Net
page. My static variable is a Hashtable and located in a dll which is
referenced by my ASP.Net aspx pages.
In one pages I have a form and in the form submit I remove some items from
the Hashtable depending on user's data. On another button in this form I do a
Response.Redirect("another.aspx") to another aspx page.
Strangely enough on the second redirected aspx page my Hashtable shows a
different value from the one that I have modified. Why does this happen?
Shouldn't a static variable be static across all ASP.Net sessions?
Thanks,
I'm a beginner with ASP.Net so please bear with me. I'm having difficulties
trying to understand the behaviour of static variable across multiple ASP.Net
page. My static variable is a Hashtable and located in a dll which is
referenced by my ASP.Net aspx pages.
In one pages I have a form and in the form submit I remove some items from
the Hashtable depending on user's data. On another button in this form I do a
Response.Redirect("another.aspx") to another aspx page.
Strangely enough on the second redirected aspx page my Hashtable shows a
different value from the one that I have modified. Why does this happen?
Shouldn't a static variable be static across all ASP.Net sessions?
Thanks,