Error using Jquery datepicker in ASP.Net
<p>I am trying to use the jquery datepicker in my asp.net solution but receive the following error:</p>

<p>Microsoft JScript runtime error: Object doesn't support property or method 'datepick'</p>

<p>I have the following markup in the head section of the site.master file:</p>

<pre><code> &lt;script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="scripts/jquery.datepick.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        $(function () {
            $('#startdate').datepick({ dateFormat: 'mm/dd/yyyy' });
            $('#enddate').datepick({ dateFormat: 'mm/dd/yyyy' });
        });    
    &lt;/script&gt;
</code></pre>

<p>And the following markup within a CheckProgress.aspx page:</p>

<pre><code>   &lt;div id="content"&gt;
                        From
                        &lt;asp:TextBox ID="startdate" class="field" runat="server" ClientIDMode="Static"&gt;&lt;/asp:TextBox&gt;
                        To
                        &lt;asp:TextBox ID="enddate" class="field" runat="server" ClientIDMode="Static"&gt;&lt;/asp:TextBox&gt;
                    &lt;/div&gt;
</code></pre>

<p>I tried loads of different things - putting the script tags inline with the div itself and moving the textboxes to different pages, but I end up getting the same error. I have checked that the jquery code paths are correct and also tried using the jquery files in a brand new asp.net solution where it works without error!</p>

<p>Any ideas how to debug this or determine what is happening here?</p>
