Replace "Framework" scripts in ASP.NET Ajax
A user reported at newsgroups there being an issue in Safari 1.3.2 with ASP.NET Ajax's release mode scripts. He said that release script wouldn't parse and suspects it relates to the compression (script being on one line) as with debug script it works just fine. He also said that on later Safari versions it works in both modes.
In cases like this you can:
- take a copy of the built-in script files needing replaced functionality
- put them say on some folder on your application
- fix what needs to be fixed in the files.
Then just give Path to them in ScriptManager to get them in use (give also the Name despite that documentation says you'd need only Name or Path)
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:ScriptReference Name="MicrosoftAjax.js" Path="[directory to look for]/MicrosoftAjax.js" />
<asp:ScriptReference Name="MicrosoftAjaxWebForms.js" Path="[directory to look for]/MicrosoftAjaxWebForms.js" />
(You can also set ScriptPath of the ScriptManager in case you want to do it for all files at once)
This changes things so that these are looked from the location given in the path, not by loading from script resources, and it lets you modify them at will. Very easy fixing in case needed.
Note: Bertrand has great post covering the same ground:
How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0
Relevant documentation entries: