State Management??????? please help

unusiotte

New Member
hello forum,<BR>I have a terrible problem which is haunting me at night. It is called state management. When I try to write a class in asp.net which extends Page class, just like any class I put in it methods and variables. Now the most interesting thing is that if I set those variables to some values and call methods that will make the page to be reloaded(like datagrid select or sort), the values in the variables are gone!!! Why? I tried many times. I tried putting it in my Session collection, but it will not retain the values. The only time when it will retain values is OnSessionLoad in web.config file. That is the only time! The state of web controls is preserved but not my variables! Can someone please help me and tell me how to preserve the state of my object's properties. Am I missing something? or is there a property that I have not set? Please help
 
Back
Top