Jul 30, 2013, 4:09 AM
[CLOSED] [2.2] DirectEvents "An error has occurred because a control..."
"An error has occurred because a control with id 'ctl00$cp$ctl07' could not be located or a different control is assigned to the same ID after postback."
I've been seeing errors like this only recently but only in directevent postback on a page where a lot of dynamic controls are created. The problem is, the shear number of controls and complexity is making it virtually impossible for me to produce a reproducible test sample with the same situation.
I need clues on what to look for. I verified that the issue is not that the loading of missing usercontrols.
The first time I had this problem, I had rewrite menu control loader that moved some controls from one loaded user control and move it to another control elsewhere. That problem went away after I updated the loader to move the control from a user control before adding the user control to the items of a usercontrolloader.
This time, I'm trying to load a UserControl with a ext:Window in its contents from a UserControlLoader that is being added into a Panels Bin.Add().
I cannot trap on the Page_Load of the UserControl which is why I'm getting the error above. It's not executing the pageload event even though the user control is loaded.
Thoughts?
I've been seeing errors like this only recently but only in directevent postback on a page where a lot of dynamic controls are created. The problem is, the shear number of controls and complexity is making it virtually impossible for me to produce a reproducible test sample with the same situation.
I need clues on what to look for. I verified that the issue is not that the loading of missing usercontrols.
The first time I had this problem, I had rewrite menu control loader that moved some controls from one loaded user control and move it to another control elsewhere. That problem went away after I updated the loader to move the control from a user control before adding the user control to the items of a usercontrolloader.
This time, I'm trying to load a UserControl with a ext:Window in its contents from a UserControlLoader that is being added into a Panels Bin.Add().
I cannot trap on the Page_Load of the UserControl which is why I'm getting the error above. It's not executing the pageload event even though the user control is loaded.
Thoughts?
Last edited by Daniil; Aug 06, 2013 at 8:26 AM.
Reason: [CLOSED]