AjaxControlToolkit.CommonToolkitScripts 错误
我在我的 asp.net 应用程序中收到以下代码
<aspext:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
<asp:ScriptReference Name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" Assembly="AjaxControlToolkit" />
</Scripts>
</aspext:ToolkitScriptManager>
<asp:Panel ID="Panel1" runat="server" />
<script type="text/javascript" language="javascript">
function getPosition() {
//alert( $common.getLocation($get("<%=Panel1.ClientID %>")).x);
var commonObj = new AjaxControlToolkit._CommonToolkitScripts();
$common.setBounds($get("<%=Panel1.ClientID %>"),
{
x : 100,
y : 200,
width : 200,
height : 100
}
}
</script>
,但收到此错误:
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
如何修复它?
I got following code in my asp.net application
<aspext:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
<asp:ScriptReference Name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" Assembly="AjaxControlToolkit" />
</Scripts>
</aspext:ToolkitScriptManager>
<asp:Panel ID="Panel1" runat="server" />
<script type="text/javascript" language="javascript">
function getPosition() {
//alert( $common.getLocation($get("<%=Panel1.ClientID %>")).x);
var commonObj = new AjaxControlToolkit._CommonToolkitScripts();
$common.setBounds($get("<%=Panel1.ClientID %>"),
{
x : 100,
y : 200,
width : 200,
height : 100
}
}
</script>
but I am getting this error:
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
how to fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请尝试使用此代码,使用
ScriptManager
而不是ToolkitScriptManager
参考 asp.net 论坛
Please try using this code, use
ScriptManager
instead ofToolkitScriptManager
In reference to asp.net forum