Hi,
I'm on DNN 7.0.3 and I've hit this issue again, after previously fixing it and forgetting what the fix is - d'oh!
This time, I'll commit my answer to the forum to A) help out where I can, and B) so that I can find it again when I forget, again.
As far as I can tell the answer lies in a file called "~/Resources/Shared/scripts/dnn.jquery.js". This file generally contains all the javascript/jquery components of a great many DNN controls.
The file has a self calling component that calls the "dnnInitCustomisedCtrls", it also registers the call for the ASPX page manager to call on request_end - which means that it always get's refired after a Webforms AJAX request completes.
In my current project, I simply use DotNetNuke 7's Client Resource Management library to include the script, this requires tow lines at the top of your ASCX file:
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
<dnn:DnnJsInclude runat="server" FilePath="~/Resources/shared/scripts/dnn.jquery.js" />
The first line registers the ClientResourceManager for use, and the latter includes your script. For those not in the know, you can use this method to include your own script files just once, no matter how many of your modules are used on a page, it works great.
Since the ClientResourceManager can be used within any module, I daresay that the URLControl should include this code itself, and that's what needs to be done to make it work properly.
Kind Regards,
Mark Rabjohn
Integrated Arts Limited