AjaxControlToolkit.CommonToolkitScripts错误

我在asp.net应用程序中获得了以下代码

        function getPosition() { //alert( $common.getLocation($get("")).x); var commonObj = new AjaxControlToolkit._CommonToolkitScripts(); $common.setBounds($get(""), { x : 100, y : 200, width : 200, height : 100 } }  

但是我收到了这个错误:

 The assembly 'AjaxControlToolkit, Version=4.1.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' does not contain a Web resource that has the name 'AjaxControlToolkit.Common.Common.js'. Make sure that the resource name is spelled correctly. Make sure that the application references the correct version of an ASP.NET AJAX Framework assembly 

怎么解决?

请尝试使用此代码,使用ScriptManager而不是ToolkitScriptManager

       

参考asp.net论坛