Hi, happy new year to everyone...
i'm developing a module deployed in dnn5.6.3 and have an update panel in it if i use asp:PostbackTrigger it works fine, but when i set the triggers to asp:AsyncPostBackTrigger in each partial postback throws an error for the Action Menu and it prevents the execution for the scripts that run on window.load, the error says :
Sys.InvalidOperationException: A control is already associated with the element.
debugging searching for the error it comes from dnn.controls.js :
{dnn.controls.control.initializeBase(this,[ctl]); <= here ctl.ClassName=ModuleTitle_MenuBar
then it reaches ScriptResource.axd:
Type.prototype.initializeBase = function Type$initializeBase(instance, baseArguments)
almost in the end of this function there's a check : "if (this.__baseType)" that throws true next it's another check: "if (!baseArguments)"
that throws false and then it reaches "Sys.UI.Control = function Sys$UI$Control(element)" in the ScriptResource.axd file where its does
"if (typeof(element.control) != 'undefined') throw Error.invalidOperation(Sys.Res.controlAlreadyDefined);"
Well thats the calls trace so far, i wonder if this is a known issue and there's any workaround or fix to it because a fullpostback isn't convenient and that's why i put the update panel in it but i need the scripts running after each asyncpostback for the good functionality of the module.
Many thanks.