Save and Load CollapsiblePanelExtender Control State Over Postback

I am using asp.net/c# and have several extensible panel extenders that are dynamically created on page load. The controls are on the refresh panel, which refreshes every 5 seconds. The problem is that whenever the refresh bar refreshes the state of the controls, it is reset. For example, the starting resource of a Folding Panel expands, if I then expand the panel and an update occurs, the panel returns to the discarded state.

How can I save the state of the expandable panel expanders and then reload the state after it is updated? Is this even the right way?

thank

Jack

+1


source to share


1 answer


Found the answer, all you have to do is add controls during page initialization, not page load. Then they save the state.



+1


source







All Articles