title: jQuery calls in external js file with MasterPages
body: <p>I am using ASP.NET 3.5 with MasterPages.  My master page has the script references to jquery and jquery UI.  My web page that uses the master page has a script reference for a custom javascript file for that page.  This javascript file has jquery calls in it (i.e. document.ready --> set up input boxes as calendars).</p>
  
  <p>When I run the website in debug from Visual Studio, the input boxes are not set as calendars.  However, if I copy the script from the external file and include it in a script block in the web page, the input box becomes a calendar.</p>
  
  <p>I also have an  element in the child page (not sure if that makes a difference).  I have referenced the external javascript file in the ScriptManager and outside of the ScriptManager and neither work.</p>
  
  <p>Why does jQuery not work in an external javascript file when the jQuery script reference resides in the master page?</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks</p>
  
  <p>MASTER PAGE CODE</p>
  
  <pre><code>&lt;head id="Head1" runat="server"&gt;
      &lt;title&gt;Customer Agreement Lifecycle Management System &lt;/title&gt;
       &lt;link rel="stylesheet" type="text/css" href="~/calms.css" /&gt;
      &lt;link href="css/ui-lightness/jquery-ui-1.7.1.custom.css" rel="stylesheet" type="text/css" /&gt;
      &lt;script type="text/javascript" src="&lt;%=ResolveUrl("~/js/jquery-1.3.2.min.js") %&gt;"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="&lt;%=ResolveUrl("~/js/jquery-ui-1.7.1.custom.min.js") %&gt;"&gt;&lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>CHILD PAGE CODE</p>
  
  <pre><code>&lt;asp:Content ID="Content1"   ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt;
  
      &lt;script src="&lt;%=ResolveUrl("~/js/rule.js") %&gt;" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
      &lt;/asp:ScriptManager&gt;
  </code></pre>