jQuery 未捕获的类型错误:无法读取未定义的属性“UI”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18645601/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Uncaught TypeError: Cannot read property 'UI' of undefined
提问by Metaphor
The error is in an ASP.NET Ajax application. This is the line of JQuery UI code the error refers to:
错误出在 ASP.NET Ajax 应用程序中。这是错误所指的 JQuery UI 代码行:
Sys.Extended.UI.DropDownBehavior
回答by Metaphor
The solution was to replace <asp:ScriptManager>
with <ajaxToolkit:ToolkitScriptManager>
.
解决方案是替换<asp:ScriptManager>
为<ajaxToolkit:ToolkitScriptManager>
.
回答by digarok
In my case, I ended up needing to use <ajaxToolkit:ToolkitScriptManager>
instead.
就我而言,我最终需要使用它<ajaxToolkit:ToolkitScriptManager>
。
回答by Muhammad Rizwan
<ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager>
use it instead of simple script manager
使用它代替简单的脚本管理器
回答by Nav
Few Days Ago,I got this same error
几天前,我遇到了同样的错误
So I Add "Latest AjaxToolKit.dll" In our Solution. You Can download in from following URL "https://www.dllme.com/dll/files/ajaxcontroltoolkit_dll.html"
所以我在我们的解决方案中添加了“最新的 AjaxToolKit.dll”。您可以从以下网址下载“ https://www.dllme.com/dll/files/ajaxcontroltoolkit_dll.html”
and Its Working For Me
它对我有用
回答by Ben
First, register the assembly:
首先,注册程序集:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
Then add the toolkitScript Manager:
然后添加工具包脚本管理器:
<cc1:ToolkitScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">