Hi,
I am trying to run avery basic ajax app with a modal popup control in it, nothing fancy at all.
But every time I try to run the application, I get this error :
0x800a139e - JavaScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.
I am using VS 2012 and am referring AjaxControlToolkit.Binary.NET45 dll too.
As suggested in the error message I even tried switching to the ToolkitScriptManager from ScriptManager but the same issue still exists.
Forgot to add that I tried it both versions of AJAX 4 and 4.5, but the error is still the same.
Please let me know how this could be fixed.
Here is my sample aspx page :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Request1.aspx.cs" Inherits="Request1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title> </head>
<body>
<form id="form1" runat="server">
<%-- <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>--%> <%--<AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></AjaxControlToolkit:ToolkitScriptManager>--%>
<asp:ToolkitScriptManager ID="ToolScriptManager1" runat="server"></asp:ToolkitScriptManager>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Button1" PopupControlID="pnlpopup" CancelControlID="btnCancelpopup" EnableViewState="true" DropShadow="true"></asp:ModalPopupExtender>
<asp:Panel ID="pnlpopup" runat="server" Width="400px">
<asp:Button ID="btnCancelpopup" runat="server" Text="Button" />
</asp:Panel>
</div>
</form>
</body>
</html>
Thanks,
Manjeera.