Reputation: 5452
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.
Upvotes: 0
Views: 10502
Reputation: 1
the solution is this just below the form tag "asp:ScriptManager id="ScriptManager1" runat="server" i.e. change "asp:ToolkitScriptManager" to simply "asp:ScriptManager" at least, for VS 2013.
Upvotes: 0
Reputation: 384
It exists in the namespace System.Web.UI.WebControls;
But in order to use it you have to install AJAX toolkit.
And before Using a Control from AJAX toolkit you have to reister the toolkit script manager.
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
You can to do one more thing.
1.Remove the Ajax Control tab from the toolbox.
2.Re-add the tab and right-click on the tab, Select Choose Items and browse to the AjaxControltoolkit.dll file in your own project and press OK(make sure that you are using the same version of ajax toolkit as of your C# version).
3.Clean and rebuild the solution and you are ready to go.
I think it will help you.
Upvotes: 0
Reputation: 6405
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...>
Upvotes: 1