Calling Sys.Application.notifyScriptLoaded
Just noticed this: "Do not call the notifyScriptLoaded method from scripts that are embedded in assemblies. The script resource handler adds an instance of this call, and a second call will cause an error." having run into the error when playing around over the weekend. (That statement is from https://asp.net/ajax/documentation/live/ClientReference/Sys/ApplicationClass/SysApplicationNotifyScriptLoadedMethod.aspx).
Sure enough, when I inspect the scripts that's exactly what happens. So with reference to my previous post on Embedding Resources you should either remove / comment out that statement when you embed the script or set the NotifyScriptLoaded property of the relevant ScriptReference object to false.
Comments
- Anonymous
April 13, 2008
PingBack from http://microsoftnews.askpcdoc.com/?p=2234