Dynamiccontent Selector

 

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
  • Anders Hattestad
    Member since: 1996
     

    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
  •  
    #28926 Mar 27, 2009 14:19