Metaphor
Metaphor

Reputation: 6405

Uncaught TypeError: Cannot read property 'UI' of undefined

The error is in an ASP.NET Ajax application. This is the line of JQuery UI code the error refers to:

Sys.Extended.UI.DropDownBehavior

Upvotes: 13

Views: 28426

Answers (5)

Nav
Nav

Reputation: 111

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"

and Its Working For Me

Upvotes: 0

twostepdevelopers
twostepdevelopers

Reputation: 73

<ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager>

use it instead of simple script manager

Upvotes: 2

Ben
Ben

Reputation: 2033

First, register the assembly:

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

Then add the toolkitScript Manager:

<cc1:ToolkitScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">

Upvotes: 0

Metaphor
Metaphor

Reputation: 6405

The solution was to replace <asp:ScriptManager> with <ajaxToolkit:ToolkitScriptManager>.

Upvotes: 46

digarok
digarok

Reputation: 1318

In my case, I ended up needing to use <ajaxToolkit:ToolkitScriptManager> instead.

Upvotes: 6

Related Questions