c# - The type or namespace name 'ToolkitScriptManager' does not exist in the namespace '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>
i have installed ajaxcontroltoolkit
, added reference it, added these controls toolbox. ajaxtoolkit:asyncfileupload
recognisable. but, getting "the type or namespace name 'toolkitscriptmanager' not exist in namespace 'ajaxcontroltoolkit' (are missing assembly reference?)"
ajaxtoolkit:toolkitscriptmanager
.
how resolve it?
you add scriptmanager
<div> <asp:scriptmanager id="scriptmanager1" runat="server"> </asp:scriptmanager> <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>
Comments
Post a Comment