[英]Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object
I have a problem on my page.我的页面有问题。 When it opens, it displays the following error message:
当它打开时,它显示以下错误消息:
Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object Microsoft JScript 运行时错误:'Sys.Extended.UI' 是 null 或者不是 object
<ajax:ToolkitScriptManager ID="tsm" runat="server" CombineScripts="false" >
</ajax:ToolkitScriptManager>
and display error并显示错误
$create(Sys.Extended.UI.ModalPopupBehavior, {"BackgroundCssClass":"modalBackground1","DropShadow":true,"PopupControlID":"ctl00_ContentPlaceHolder1_panelPopupAddDefaultAddress","PopupDragHandleControlID":"ctl00_ContentPlaceHolder1_panelPopupAddDefaultAddressDragHandle","dynamicServicePath":"/SJM.Framework.Website/Order/ActiveOrders.aspx","id":"ctl00_ContentPlaceHolder1_modalPopupAddDefaultAddress"}, null, null, $get("ctl00_ContentPlaceHolder1_hiddenTargetControlForModalPopup"));
Can anyone tell me me what is the problem is.谁能告诉我问题出在哪里。 I've tried, but I haven't found it.
我已经尝试过,但我还没有找到它。
I got this error because somewhere I was using ScriptManager instead of ToolkitScriptManager. 我收到此错误是因为某处我使用的是ScriptManager而不是ToolkitScriptManager。 The moment i replaced Script Manager with Took kit script Manager application started working fine.
我用Took工具包脚本管理器应用程序取代脚本管理器的那一刻开始正常工作。
Hope this helps someone! 希望这有助于某人!
Have you tried using a newer version of the AjaxControlToolkit
? 您是否尝试过使用较新版本的
AjaxControlToolkit
? I am using (
) 4.5.7.123
3.5.7.123
and this problem doesn't exist. 我正在使用(
) 4.5.7.123
3.5.7.123
,这个问题不存在。
Also, you might want to take a look at this solution: 此外,您可能想看看这个解决方案:
http://forums.asp.net/p/1209962/2132128.aspx#2132128 http://forums.asp.net/p/1209962/2132128.aspx#2132128
I have seen this error when I was in a .NET 4.0 solution and the AjaxControlToolkit.dll file I was referencing was v4.5.xy The error went away when I tried an AjaxControlToolkit.dll file that was v4.1.vw, where I don't recall what x, y, v, and w are. 我在.NET 4.0解决方案中遇到此错误,我引用的AjaxControlToolkit.dll文件是v4.5.xy当我尝试了一个v4.1.vw的AjaxControlToolkit.dll文件时,错误就消失了,其中我不记得x,y,v和w是什么。
To find out what version the AjaxControlToolkit.dll file is, right click on it after adding it as a Reference, and select Properties -- there is a Property called Version that will tell you. 要找出AjaxControlToolkit.dll文件的版本,在将其添加为引用后右键单击它,然后选择属性 - 有一个名为Version的属性将告诉您。
I have just resolved the "'Sys.Extended.UI' is null or not an object" problem by adding the directive: 我刚刚通过添加指令解决了''Sys.Extended.UI'为null或不是对象“的问题:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
which was missing in .aspx code for some reason. 由于某种原因,在.aspx代码中丢失了。
And by replacing <asp:ScriptManager ID="ScriptManager1" runat="server" />
并通过替换
<asp:ScriptManager ID="ScriptManager1" runat="server" />
with 同
<ajaxToolkit:ToolkitScriptManager runat="server" ID="ToolkitScriptManager" EnablePartialRendering="true"></ajaxToolkit:ToolkitScriptManager>
I've solved this by setting the LoadScriptsBeforeUI
property to true like this:我通过将
LoadScriptsBeforeUI
属性设置为 true 解决了这个问题,如下所示:
<asp:ScriptManager ID="smMain" runat="server" LoadScriptsBeforeUI="true" ScriptMode="Release"></asp:ScriptManager>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.