I was facing a problem with backspace button while using MaskedEditExtender, that's why I upgraded the AjaxControlToolkit from v 4.1.60919.0 to the latest version n 16.1.1.0. But now I am facing a new error, we were implementing the toolkitscriptmanager but now I cannot find it, even in the solution there is no ToolkitScriptManager neither ScriptManager to be called. So what should I do? To understand what I mean:
In web.config I am assembling the AjaxControlToolkit to cc1
<add tagPrefix="cc1" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/>
Whenever I use cc1 tag in my .aspx pages, element ToolkitScriptManager is not valid in the new version. How can I fix the problem?
The ToolkitScriptManager is responsible for loading all of the JavaScript files required by a set of Ajax Control Toolkit controls. Second, the ToolkitScriptManager is responsible for optimizing JavaScript and files.
Right Click the References in Solution Explorer and select Add Reference,Select "Browse" Tab, Select AjaxToolkit. dll from the "bin" folder from your project folder.
What worked for me was changing this:
<ajaxToolKit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</ajaxToolKit:ToolkitScriptManager>
To this:
<asp:ScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ScriptManager>
My original tagPrefix is ajaxToolKit whereas OP prefix is cc1, but same concept.
Everything in my project worked like a charm after this.
This is intended. ToolkitScriptManager was removed in v15.1. Please follow the upgrade guide to resolve this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With