本文介绍了命名空间“System.Web.UI.WebControls"中不存在类型或命名空间名称“ToolkitScriptManager"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到以下错误
命名空间System.Web.UI.WebControls"中不存在类型或命名空间名称ToolkitScriptManager"(您是否缺少程序集引用?)命名空间System.Web.UI.WebControls"中不存在类型或命名空间名称ModalPopupExtender"(您是否缺少程序集引用?)命名空间System.Web.UI.WebControls"中不存在类型或命名空间名称Accordion"(您是否缺少程序集引用?)
我已经安装了 ajaxControlToolKit 并且在我的 web.config 文件中有这个
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/></controls></pages>
我的 .aspx 页面
头部>
</asp:ToolkitScriptManager><asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BehaviorID="MPBehaviorIDOpen"TargetControlID="btnPopupRender" PopupControlID="panelOpen" BackgroundCssClass="modalBackground"PopupDragHandleControlID="panelOpenHead" OkControlID="btnOKOpen" CancelControlID="btnCancelOpen"/><asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" BehaviorID="MPBehaviorIDResize"TargetControlID="btnPopupRender" PopupControlID="panelPageSize" BackgroundCssClass="modalBackground"PopupDragHandleControlID="panelPageSizeHead" OkControlID="btnPageSizeOK" CancelControlID="btnPageSizeCancel"/><div><asp:Button id="btnPopupRender" Height="0px" Width="0px" runat="server" style="display:none;"/>
<table style="height: 100%; vertical-align: top; width: 100%;"><tr><td style="height: 100%; vertical-align: top;"><asp:Accordion ID="MyAccordion" runat="server" SelectedIndex="0"HeaderCssClass="accordionHeader" ContentCssClass="accordionContent"FadeTransitions="true" FramesPerSecond="40" TransitionDuration="250"AutoSize="None" CssClass="accordionStyle" Width="140"><窗格><asp:AccordionPane ID="AccordionPane1" runat="server"><页眉>工具箱</页眉><内容><asp:ImageButton ID="btnOpen" runat="server" Width="40px" Height="40px"OnClientClick="ShowPopup(event,'MPBehaviorIDOpen'); return false;"ImageUrl="~/Images/open.png"/><br/><asp:Label ID="Label1" runat="server" Text="Open"></asp:Label><br/><br/><asp:ImageButton ID="btnPageSize" runat="server" Width="40px" Height="40px"OnClientClick="ShowPopup(event,'MPBehaviorIDResize'); return false;"ImageUrl="~/Images/paperSettings.png"/><br/><asp:Label ID="Label5" runat="server" Text="Page Size"></asp:Label><br/><br/><asp:ImageButton ID="btnDraw" runat="server" Width="40px" Height="40px"OnClientClick="SelectTool('pencil'); return false;"ImageUrl="~/Images/draw.png"/><br/><asp:Label runat="server" Text="Draw"></asp:Label><br/><br/><asp:ImageButton ID="btnText" runat="server" Width="40px" Height="40px"OnClientClick="SelectTool('text'); return false;"ImageUrl="~/Images/text.png"/><br/><asp:Label ID="Label2" runat="server" Text="Text"></asp:Label><br/><br/><asp:ImageButton ID="btnLine" runat="server" Width="40px" Height="40px"OnClientClick="SelectTool('line'); return false;"ImageUrl="~/Images/line.png"/><br/><asp:Label runat="server" Text="Line"></asp:Label><br/><br/><asp:ImageButton ID="btnSquare" runat="server" Width="40px" Height="40px"OnClientClick="SelectTool('rect'); return false;"ImageUrl="~/Images/square.png"/><br/><asp:Label runat="server" Text="Square"></asp:Label><br/><br/><asp:ImageButton ID="btnSave" runat="server" Width="40px" Height="40px"OnClientClick="SaveDrawings();return false;"ImageUrl="~/Images/save.png"/><br/><asp:Label ID="Label11" runat="server" Text="Save"></asp:Label><br/><br/><asp:ImageButton ID="btnExit" runat="server" Width="40px" Height="40px"OnClientClick="Exit();return false;"ImageUrl="~/Images/exit.png"/><br/><asp:Label ID="Label3" runat="server" Text="Exit"></asp:Label><br/><br/></内容></asp:AccordionPane></窗格></asp:手风琴></td><td style="height: 100%; vertical-align: top; "><div id="容器"><canvas id="imageView"></canvas>