Hello:
I have a question that I thought I knew the answer to but am no longer sure. I think there is also the good possibility that there is something sick on my development server (every since I installed .NET 3.0, LINQ and some other stuff, strange things have happened with .NET 2.0).
Say I have a module on a page. The page is loaded, so the class is instantiated. All class level variables are defined and assigned per the page init, page load, etc.
I have a button on the module that says 'search'. It performs a postback. My question is this. Is the class already instantiated? So if I loaded something in the page_init the first time through, and I set a class variable 'bLoaded' = true, will that bLoaded still be equal to true on subsequent postbacks?
I know this sounds like a stupid question, but in debugging a module I've written, strange things are happening, like not getting postback events on clicks set with 'AutoPostBack=true', and class variables, which should have been set the first time through appear to have been reset as if the whole class was re initiated.
In short, what I'm asking is for someone to verify, yes or no, that if a page loads, then the module loads the first time, the module class remains instantiated until either session timeout or the user clicks on another page. Correct?
Thanks for the help.