G
Guest
I have an application in which I store state in the Session object. There
are two paths of execution in the Page_Load method of the default page. In
one path the Session state is preserved across postback and it works fine.
In the other path the Session state is lost and I get a new Session object
after the postback. The page has a grid on it and I am using a List<T> as a
datasource for the grid that is stored in the Session state and is to be
recovered on postbacks. The handler on the postback is to recover objects in
the data source that correspond to selections in the grid. When the Session
is lost I, obviouslly have problems in the handler.
What can cause loss of Session? I am not calling Abandon.
Thanks,
Eagle
are two paths of execution in the Page_Load method of the default page. In
one path the Session state is preserved across postback and it works fine.
In the other path the Session state is lost and I get a new Session object
after the postback. The page has a grid on it and I am using a List<T> as a
datasource for the grid that is stored in the Session state and is to be
recovered on postbacks. The handler on the postback is to recover objects in
the data source that correspond to selections in the grid. When the Session
is lost I, obviouslly have problems in the handler.
What can cause loss of Session? I am not calling Abandon.
Thanks,
Eagle