错误: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.
解决办法:
只要将:
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
更改为:
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
当然在页面的头部,你有写
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
其实一开始我知道这样改是可以顺利解决这个问题,但是根本原因我不是很清楚,所以我都还原用ScriptManager控件,这次好了,有点理论根据了,至少是章立民先生写的,我将所有的内容都复制过来了!
******************以下内容是来自于http://www.cnblogs.com/liminzhang/archive/2007/07/31/837329.html*****************
ToolkitScriptManager VS ScriptManager
亲爱的朋友们,
我们在2007/6/21台北研讨会以及2007/07/07北京研讨会都曾经特别提醒大家,为了让JavaScript档案能够先压缩再下载,以便提升下载效率并降低请求(Request)次数,请大家在设计ASP.NET AJAX网页时,应该尽量使用ToolkitScriptManager来取代ScriptManager。为了验证此说法,并让当时未参加研讨会的朋友也能亲身体验,我们特别制作一段影片来比较两个分别使用ToolkitScriptManager与ScriptManager之网页的下载效率与请求次数,影片网址如下:(请注意,欲顺利浏览此影片,您的电脑务必先安装Silverlight 1.0 RC1的执行阶段元件)
http://alexchuo.googlepages.com/AJAX.htm 【这里好像失效了
章立民研究室