Using jQuery and a ScriptManager control on an ASPX page
<p>I am developping a training ASP .Net website.<br>
I have written an ASPX page containing a ScriptManager control.<br>
The ScriptManager control is necessary because I use UpdatePanel controls.<br>
I have also imported the jQuery file.</p>

<p>I get a JavaScript error when loading my ASPX page within a web browser.<br>
The error is raised in a JavaScript file automatically imported via the ScriptManager control.</p>

<p>The error is precisely raised by the following line :</p>

<pre><code>el = Sys.UI.DomElement.getElementById(el, containerElement);
</code></pre>

<p>The line above is in the following function :</p>

<pre><code>Sys.UI.DomElement.resolveElement = function Sys$UI$DomElement$resolveElement(elementOrElementId, containerElement) {
    /// &lt;summary locid="M:J#Sys.UI.DomElement.resolveElement" /&gt;
    /// &lt;param name="elementOrElementId" mayBeNull="true"&gt;&lt;/param&gt;
    /// &lt;param name="containerElement" domElement="true" optional="true" mayBeNull="true"&gt;&lt;/param&gt;
    /// &lt;returns domElement="true"&gt;&lt;/returns&gt;
    var e = Function._validateParams(arguments, [
        {name: "elementOrElementId", mayBeNull: true},
        {name: "containerElement", mayBeNull: true, domElement: true, optional: true}
    ]);
    if (e) throw e;
    var el = elementOrElementId;
    if (!el) return null;
    if (typeof(el) === "string") {
        el = Sys.UI.DomElement.getElementById(el, containerElement);
        if (!el) {
            throw Error.argument("elementOrElementId", String.format(Sys.Res.elementNotFound, elementOrElementId));
        }
    }
    else if(!Sys.UI.DomElement.isDomElement(el)) {
        throw Error.argument("elementOrElementId", Sys.Res.expectedElementOrId);
    }
    return el;
}
</code></pre>

<p>Here is the error message I get :
SCRIPT5022: Sys.ArgumentException: An element with id 'm_webForm' could not be found.</p>

<p>The id property of my form control is set to m_webForm.<br>
I do not get the error when I do not import the jQuery file.<br>
It seems that the Sys.UI.DomElement.getElementById is in conflict with the jQuery code.</p>

<p>Any help will be greatly appreciated</p>
