This problem is difficult to describe, so bear with me.
I have a user control that I built, that contains a RadAjaxPanel along with a RadAjaxLoadingPanel and some other controls. I then have an aspx page that contains another RadAjaxPanel and RadAjaxLoadingPanel. I have wrote some server side code that will add the user control to a panel on the page dynamically when a button within the aspx page's RadAjaxPanel is clicked. The panel that the control gets added to has been delegated as an UpdateControl in the RadAjaxManager, so as to avoid a complete postback. I have made sure to write the server side code, so that the user control's ID and all of its containing ctrl's ID's are unique with an incremented number on the end. This however is not preventing a javascript runtime errors from popping up when I test this in debug. The errors are as follows:
"Sys.InvalidOperationException: A control is already associated with the element."
"Sys.InvalidOperationException: Two components with the same id 'dynamicRADAJAXPanelID' can't be added to the application."
I have checked all the control ID's and none are the same. The web page function properly, and does add the controls dynamically, but still throws the exception. If I ignore the exceptions, the page renders and functions properly.
If anyone knows of any issues with adding RadControls dynamically, or with adding controls dynamically in an AJAX postback rather than a full postback, please help me out. If you need to see the code, let me know.
Thanks.
I have a user control that I built, that contains a RadAjaxPanel along with a RadAjaxLoadingPanel and some other controls. I then have an aspx page that contains another RadAjaxPanel and RadAjaxLoadingPanel. I have wrote some server side code that will add the user control to a panel on the page dynamically when a button within the aspx page's RadAjaxPanel is clicked. The panel that the control gets added to has been delegated as an UpdateControl in the RadAjaxManager, so as to avoid a complete postback. I have made sure to write the server side code, so that the user control's ID and all of its containing ctrl's ID's are unique with an incremented number on the end. This however is not preventing a javascript runtime errors from popping up when I test this in debug. The errors are as follows:
"Sys.InvalidOperationException: A control is already associated with the element."
"Sys.InvalidOperationException: Two components with the same id 'dynamicRADAJAXPanelID' can't be added to the application."
I have checked all the control ID's and none are the same. The web page function properly, and does add the controls dynamically, but still throws the exception. If I ignore the exceptions, the page renders and functions properly.
If anyone knows of any issues with adding RadControls dynamically, or with adding controls dynamically in an AJAX postback rather than a full postback, please help me out. If you need to see the code, let me know.
Thanks.