Sunday, March 11, 2012

Error: Sys.ScriptLoadFailedException:

Hi,

first of all, please ensure that the file is actually being sent to the browser (you can do that by browsing to the script URL).

If you are loading a script file after a partial postback, then you need to append the following statement at the end of the file:

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();

The reason is that script files loaded after a partial postback are loaded asynchronously. Thus, you need to notify Sys.Application that the script has been parsed.

No comments:

Post a Comment