Try our conversational search powered by Generative AI!

Dynamiccontent Selector

Vote:
 

Hi,

I have a few dynamiccontent controls, when i select any of these first time.. they work as thought. But if i change the selection to another control the page crashes.

"Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request."

What i want is to clear the viewstate when ever the dynamiccontent selector does a postback. (but i dont know to catch this event). I would also like to disable the selector when editing a previous created control.

*Disabling the viewstate of the "dynamic controls" isnt a option :(

all tips/suggestions are highly appreciated.

//alex

#28910
Mar 26, 2009 11:53
Vote:
 

Is it your own sub selector or is it the selector from EPiServer?

I havent tried but could you set the Control.ID to something uniqe pr dynamic content control?

#28911
Mar 26, 2009 14:11
Vote:
 
#28926
Mar 27, 2009 14:19
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.