【问题标题】:The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit' (are you missing an assembly reference?)名称空间“AjaxControlToolkit”中不存在类型或名称空间名称“ToolkitScriptManager”(您是否缺少程序集引用?)
【发布时间】:2019-08-11 11:06:14
【问题描述】:

我正在开发一个项目,其中引用正确添加了“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?)

我删除了工具包程序集并将其正确添加到参考列表中,并且我还删除并重新生成了设计器文件。仍然没有运气。有什么帮助吗?

【问题讨论】:

    标签: c# asp.net .net ajax ajaxcontroltoolkit


    【解决方案1】:

    你需要添加

    using AjaxControlToolkit;
    

    在你的 aspx.cs 中

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-02-11
      • 1970-01-01
      • 2021-09-04
      • 2015-02-14
      • 2013-11-04
      • 2018-05-07
      • 1970-01-01
      • 2017-05-04
      相关资源
      最近更新 更多