Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AjaxControlToolkit.ToolkitScriptManager is not available in version 16.1.1.0

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?

like image 507
AlessHo Avatar asked Dec 22 '16 09:12

AlessHo


People also ask

What is ToolkitScriptManager in asp net?

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.

How do I reference AjaxControlToolkit?

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.


2 Answers

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.

like image 81
Taylor Brown Avatar answered Sep 17 '22 23:09

Taylor Brown


This is intended. ToolkitScriptManager was removed in v15.1. Please follow the upgrade guide to resolve this issue.

like image 26
MikhailTymchukDX Avatar answered Sep 18 '22 23:09

MikhailTymchukDX