Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesError on async postbackError on async postback
Previous
 
Next
New Post
1/3/2012 12:04 PM
 

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.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesError on async postbackError on async postback


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out