[英]The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit'
[英]The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit' (are you missing an assembly reference?)
我正在一個項目中引用正確添加了“ AjaxControlToolKit”程序集的項目中。 同樣在aspx文件中,我添加了以下標簽:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
進一步在aspx.cs文件中,我添加了名稱空間以包括Ajaxtoolkit控件:
using System.Web.UI.WebControls;
在aspx.designer.cs文件上,我看到了生成的控件,如下所示:
protected global::AjaxControlToolkit.ToolkitScriptManager ToolkitScriptManager1;
在構建項目時,我看到以下錯誤:
The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit' (are you missing an assembly reference?)
我已刪除工具包部件並將其正確添加到參考列表中,並且我還刪除並重新生成了設計器文件。 仍然沒有運氣。 有什么幫助嗎?
您需要添加
using AjaxControlToolkit;
在你的aspx.cs中
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.