Microsoft JScript Runtime Error: "Sys.Extended.UI" is null or not an object

I have a problem on my page. When it opens, the following error message appears:

Microsoft JScript Runtime Error: "Sys.Extended.UI" is null or not an object

<ajax:ToolkitScriptManager ID="tsm" runat="server" CombineScripts="false" >

    </ajax:ToolkitScriptManager>

      

and the displayed 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 what the problem is. I tried it but I didn't find it.

+3


source to share


4 answers


Have you tried using a newer version AjaxControlToolkit

? I am using ( 4.5.7.123

) 3.5.7.123

and this problem doesn't exist.

Alternatively, you can take a look at this solution:



http://forums.asp.net/p/1209962/2132128.aspx#2132128

+2


source


I got this error because somewhere I was using ScriptManager instead of ToolkitScriptManager. The moment I replaced the Script Manager with the Took kit Script application, the manager application started working fine.



Hope this helps someone!

+5


source


I just solved that the "Sys.Extended.UI" problem is null or non-object by adding the directive:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

      

which was missing from the .aspx code for some reason.

And replacing <asp:ScriptManager ID="ScriptManager1" runat="server" />

from

<ajaxToolkit:ToolkitScriptManager runat="server" ID="ToolkitScriptManager" EnablePartialRendering="true"></ajaxToolkit:ToolkitScriptManager>

      

+1


source


I saw this error when I was in a .NET 4.0 solution and the AjaxControlToolkit.dll file I referenced was v4.5.xy The error disappeared when I tried the AjaxControlToolkit.dll file which was v4.1.vw where I don't remember which x, y, v and w are.

To find out which version the AjaxControlToolkit.dll file is in, right-click it after adding it as a link and select Properties - there is a Version property that will tell you.

0


source







All Articles