title: Ajax Control Toolkit and Jquery not getting along in ASP.NET 4.0
body: <p>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.  </p>
  
  <p>Below is the only code needed to recreate my problem.</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestForm.aspx.cs" Inherits="TestWebsite.TestForm" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
          &lt;script type="text/javascript" 
          src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
          language="javascript" /&gt; 
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"&gt;
      &lt;/ajax:ToolkitScriptManager&gt;
      &lt;div&gt;
  
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>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</p>
  
  <p>"Microsoft JScript runtime error: Sys.ArgumentException: An element with id 'form1' could not be found.
  Parameter name: elementOrElementId"</p>
  
  <p>Stacktrace is giving me the DomElement$resolveElement(elementOrElementId, containerElement) javascript function as the culprit.</p>
  
  <p>Any help would be appreciated.</p>