learningguy
Programmer
Hi, all,
First post here. I'm new to ASP.NET (but experienced in .NET), and trying to mock up my first project.
It contains several UpdatePanels that are set to Conditional, ChildControlTriggers = false, and have another control's default event set as the update trigger.
The problem I'm having, which I imagine is very obvious, is that every time anything triggers a postback, all the member variables of the _Default class are recreated and the Page_Load event is run again.
This is happening even for the controls that are only supposed to trigger a partial page postback. But I don't want it to happen at all after the initial page load!
I thought ASP.NET kept state for you? Why is it recreating everything every time?
Do I need to create my session variables in a separate class?
First post here. I'm new to ASP.NET (but experienced in .NET), and trying to mock up my first project.
It contains several UpdatePanels that are set to Conditional, ChildControlTriggers = false, and have another control's default event set as the update trigger.
The problem I'm having, which I imagine is very obvious, is that every time anything triggers a postback, all the member variables of the _Default class are recreated and the Page_Load event is run again.
This is happening even for the controls that are only supposed to trigger a partial page postback. But I don't want it to happen at all after the initial page load!
I thought ASP.NET kept state for you? Why is it recreating everything every time?
Do I need to create my session variables in a separate class?