开发者

Getting 'AJAX Control Toolkit is undefined' when setting the CombineScripts="true"

开发者 https://www.devze.com 2022-12-30 17:39 出处:网络
I am getting AJAX Control Toolkit is undefined error when I have th开发者_运维知识库e CombineScripts=\"true\" on the ToolkitScriptManager:

I am getting AJAX Control Toolkit is undefined error when I have th开发者_运维知识库e CombineScripts="true" on the ToolkitScriptManager:

<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" EnablePageMethods="false" ScriptMode="Release"
            LoadScriptsBeforeUI="false" runat="server" CombineScripts="true">
            <CompositeScript>
                <Scripts>
                    <asp:ScriptReference Path="~/JavaScript/jquery-1.4.1.min.js" />
                    <asp:ScriptReference Path="~/JavaScript/Custom.js" />
                </Scripts>
            </CompositeScript>
        </ajaxToolkit:ToolkitScriptManager>

But when I set the CombineScripts to false everything seems to work. Why is this happening?


Its a bug in ajax toolkit.

See this link about the bug.

And this site has an explanation of a work around.


in my case i have changed the CombineScripts attribut of ajaxToolkit:ToolkitScriptManager from true to false(CombineScripts ="false").

This works for me

0

精彩评论

暂无评论...
验证码 换一张
取 消