RE: data disappearing problem on the forms when navigate
Tech-Archive recommends: Fix windows errors by optimizing your registry
My pleasure Betty :)
For Session State, we have the following pattern to clear values in it:
1. When a certain item in it is no longer needed, we can just clear it by
assign that entry to null , e.g:
Session["key1"] = null;
then, that entry's referenced object will be ready for GC(if there is other
live reference to it).
2. If you want to clear all the referenced objects in the current User's
Session, you can call HttpSessionState.Clear method:
#HttpSessionState.Clear Method
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebsessionstat
ehttpsessionstateclasscleartopic.asp?frame=true
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.