使用Ajax扩展错误的asp.net 4.0 [英] Error with Ajax Extensions for asp.net 4.0

查看:141
本文介绍了使用Ajax扩展错误的asp.net 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让AJAX扩展工作在现有的Web窗体应用程序。

I'm trying to get AJAX extensions working on an existing Web Forms Application.

我已经使用的NuGet添加AjaxControlToolkit中。作为一个测试,我设置一个网页,一个按钮,添加一个按钮确认扩展。

I've added the AjaxControlToolkit using Nuget. As a test I setup a page with a button and added a button confirmation extension.

我得到这个错误:

0x800a138f - JavaScript的运行时错误:无法获取未定义或为空引用属性UI

0x800a138f - JavaScript runtime error: Unable to get property 'UI' of undefined or null reference

在在动态创建的Javascript下面一行:

On the following line in the dynamically created Javascript:

$create(Sys.Extended.UI.ConfirmButtonBehavior, {"ConfirmText":"Are ya totally sure?","id":"MainContent_Button1_ConfirmButtonExtender"}, null, null, $get("MainContent_Button1"));

我猜的图书馆之一是错误的版本,但不知道如何去搞清楚了这一点。我试图更新使用的NuGet包。

I'm guessing that one of the libraries is the wrong version, but don't know how to go about figuring this out. I've tried to update packages using Nuget.

任何想法?

谢谢!

推荐答案

尝试注册 AjaxToolkit

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

这篇关于使用Ajax扩展错误的asp.net 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆