命名空间'AjaxControlToolkit'中不存在类型或命名空间名称'ToolkitScriptManager'

时间:2015-06-19 08:23:34

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

 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileUpload.aspx.cs" Inherits="Test.FileUpload" %>
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>


<div>
        <ajaxToolkit:ToolkitScriptManager id="scriptManager1" runat="server" />

        <div>
            <ajaxToolkit:AsyncFileUpload runat="server" id="fileUpload1" onclientuploadcomplete="uploadComplete" onclientuploaderror="uploadError"
                completebackcolor="White" width="350px" uploaderstyle="Modern" uploadingbackcolor="#CCFFFF"
                throbberid="imgLoad" onuploadedcomplete="fileUploadComplete"></ajaxToolkit:AsyncFileUpload>
            <br />
            <asp:Image ID="imgLoad" runat="server" ImageUrl="loading.gif" />
            <br />
            <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
        </div>
     </div> 

我已安装AjaxControlToolKit,添加了对它的引用,将这些控件添加到Toolbox。 ajaxToolkit:AsyncFileUpload是可识别的。但是,我"The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit' (are you missing an assembly reference?)"获得了ajaxToolkit:ToolkitScriptManager

如何解决?

1 个答案:

答案 0 :(得分:0)

添加ScriptManager AS

<style>