I've been struggling with this for several hours and can't seem to figure out what is going or any relevant sites that pertain to this. All I'm trying to do is to use the Ajax Control Toolkit and JQuery at the same time.
Below is the only code needed to recreate my problem.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestForm.aspx.cs" Inherits="TestWebsite.TestForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
language="javascript" />
</head>
<body>
<form id="form1" runat="server">
<ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</ajax:ToolkitScriptManager>
<div>
</div>
</form>
</body>
</html>
In case it matters I am using Visual Studio 2010 professional. My asp.net website is targeting the .NET 4.0 framework. I am using the AjaxControlToolkit.dll which has a version of 4.1.60501.0. Jquery is the 1.7.2 min version.
If I comment out either the jquery script line or the ToolkitScriptManager I don't get any javascript errors. If they are both included I get the error
"Microsoft JScript runtime error: Sys.ArgumentException: An element with id 'form1' could not be found. Parameter name: elementOrElementId"
Stacktrace is giving me the DomElement$resolveElement(elementOrElementId, containerElement) javascript function as the culprit.
Any help would be appreciated.