<%@ 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
。
如何解决?
答案 0 :(得分:0)
添加ScriptManager AS
<style>