ajax unknown server tag asp scriptmanager
Solution 1
The tagprefix in your @register and the tag in in front of the scriptmanager must match. Also I think you better use the ToolkitScriptManager that comes with the toolkit http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html:
In my case it is cc1:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
and in your <body>
<cc1:ToolkitScriptManager ID="TKSM" EnablePageMethods="true" EnableCdn="true" ScriptMode="Release" runat="server">
</cc1:ToolkitScriptManager>
Solution 2
In your system.web you need to add:
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
Solution 3
Add targetFramework="4.0" in the compilation tag in web.config file.
Admin
Updated on May 20, 2020Comments
-
Admin almost 4 years
I have this in my Register
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
But when I drop and drag a scriptmanager into VS2010 i receieve the error ajax unknown server tag asp scriptmanager
<asp:ScriptManager ID="ScriptManager1" runat="server" />
changed it to
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
Still produces the error.