Wednesday, March 21, 2012

Asp Ajax Beta 1, ScriptPaths Debug file loads after the WebResource file.

<rant>

The ASP Ajax Beta 1, still downloads it's javascript WebResources even when the ScriptPath to the file you want to debug has been supplied!!!!

Is this a bug??

How do you stop it from doing this?

</rant>

I have a custom extender written using the September CTP, which worked very well, and when using the ScriptPath attribute allowed me to debug the .js file easily.

I have now switched to the Asp Ajax Beta1 and cannot debug my extender .js files, even with the ScriptPath set on the extender control.

The problem appears to have be caused because the server insists on downloading the Js file set up in the ClientScriptResource attribute as the extender's WebResource,

even when you supply the script path to the file. Therefore if you have a syntax error in the js, the page stops loading, and you can't even find the line of code causing the problem.

How do you stop the server deciding to download this web resource before the debug version of the file!

I have simple solution the demonstrates my problem, let me know if you want me to email it to you.

Hi Stefan. Can you post your specific code here that you are trying to use in the Beta?

No comments:

Post a Comment