A Question about Session State in ASP.NET# DotNet - 窗口里的风景
d*t
1 楼
Hi, All,
I have been confused by a seemingly simple question for a few days. Hope
anyone could give me some suggestion.
What bothers me is that ASP.NET seems to be able to remember the state of an
object after I put that object into the Session property. As you can find
in my code, I didn't explicitly save the object back to the Session property
after I changed it. But the state of the object seems to be updated in
following requests. Did I miss anything here? Thanks in advance.
Below is my code
I have been confused by a seemingly simple question for a few days. Hope
anyone could give me some suggestion.
What bothers me is that ASP.NET seems to be able to remember the state of an
object after I put that object into the Session property. As you can find
in my code, I didn't explicitly save the object back to the Session property
after I changed it. But the state of the object seems to be updated in
following requests. Did I miss anything here? Thanks in advance.
Below is my code