Search code examples
asp.netajaxwebformsasp.net-ajaxajaxcontroltoolkit

The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'System.Web.UI.WebControls'


i'am trying to use ajaxcontroltoolkit in my asp.net web forms project. I have added the reference already and also added the kit to the toobox by using its dll that i got from NuGet. But when i try to run project i get this error. By the way i'am using visual studio 2012 ultimate.

Unknown Server Control Error

Here is my codes

                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
                <asp:TabContainer ID="TabContainer1" runat="server">
                    <asp:TabPanel>
                        <HeaderTemplate>Add Category</HeaderTemplate>
                        <ContentTemplate></ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel>
                        <HeaderTemplate>Add Brand</HeaderTemplate>
                        <ContentTemplate></ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel>
                        <HeaderTemplate>Add Model</HeaderTemplate>
                        <ContentTemplate></ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel>
                        <HeaderTemplate>Add Shoe</HeaderTemplate>
                        <ContentTemplate></ContentTemplate>
                    </asp:TabPanel>
                </asp:TabContainer>

I have google it already but i couldn't find any solution. I can add any neccesary information if you need. Thanks for any help.


Solution

  • Do you have the Ajax Toolkit installed?

    http://ajaxcontroltoolkit.codeplex.com/

    Is the following line at the top of your page?

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
    

    If you do, try this:

    <ajaxToolkit:ToolkitScriptManager...>