ScriptManager and debug=false
-
Hi there ! I cannot persuade ScriptManager control to switch MicrosoftAjax js library to the release version when the web.config defines debug=false. Maximum that it can do for me - load both versions simultaniously :(( . I had to refuse to use the built-in resources because of known bug (http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx[^]) Here is how my ScriptManager control looks like:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True" EnableViewState="False" > <Scripts> <asp:ScriptReference Name="MicrosoftAjax.js" Path="javascript/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js" /> <asp:ScriptReference Name="MicrosoftAjax.debug.js" Path="javascript/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.debug.js" /> </Scripts> </asp:ScriptManager>
I'll be very thankful to anybody that can shed light on this mystery. Thanks in advance. Regards, Gennady -
Hi there ! I cannot persuade ScriptManager control to switch MicrosoftAjax js library to the release version when the web.config defines debug=false. Maximum that it can do for me - load both versions simultaniously :(( . I had to refuse to use the built-in resources because of known bug (http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx[^]) Here is how my ScriptManager control looks like:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True" EnableViewState="False" > <Scripts> <asp:ScriptReference Name="MicrosoftAjax.js" Path="javascript/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js" /> <asp:ScriptReference Name="MicrosoftAjax.debug.js" Path="javascript/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.debug.js" /> </Scripts> </asp:ScriptManager>
I'll be very thankful to anybody that can shed light on this mystery. Thanks in advance. Regards, GennadyAs usual, sending question I continued to think about it. And suddenly I've understand what was my mistake. I don't need to include both script referencies - only one to release version. ScriptManager is smart enough to add "debug" to the name and key, if in debug mode. Sorry. Regards, Gennady