我正在开发一个项目,其中引用正确添加了'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?)
我删除并正确地将工具包程序集添加到引用列表中,并且还删除并重新生成了设计器文件。仍然没有运气。有帮助吗?