I've been using the Dojo Toolkit to implement Drag and Drop in my page, and all works fine until an asynchronous postback occurs, then the Javascript stops functioning. In my .NET page I have this in my Page_Load:
This loads the script dynamically fine, but an asynch postback still causes my Javascript not to function. Is there any way to load these files dynamically and have them function after such a postback?
Code:
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "dojo", "<script type='text/javascript' src='/Pages/dojosource/dojo/dojo.js' djConfig='parseOnLoad: true'></script>", false);
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "dojo_required", "dojo.require('dojo.dnd.Source'); dojo.require('dojo.parser');", true);
Comment