title: Jquery DateTimePicker not working with asp.net master page and content page
body: <p>I have been struggling to get the datetime picker working with Asp.net 4.0. I have added the jquery-1.5.2.min.js and jquery-datepicker.js inside the scripts folder. I'm getting error message </p>
  
  <pre><code>Microsoft JScript runtime error: Object doesn't support this property or method
  </code></pre>
  
  <p>inside jquery-1.5.2.min.js .</p>
  
  <p>I went through the similar questions posted in stackoverflow, but still not able to resolve the answer. I'm sure that the script path is not getting resolved properly. I tried different combinations adding the script tag in Master and also content page.It still did not work. I also tried ResolveUrl in content page, it still failed.</p>
  
  <p>Updated code - still gives error for me.
             ' type="text/javascript"><br>
               ' type="text/javascript"><br>
                 '                  rel="stylesheet" type="text/css" /><br>
          </p>
  
  <pre><code>       $(document).ready(function ()
          {
             $("#&lt;%=TextBox1.ClientID %&gt;").datepicker(); 
          });     
  
           &lt;/script&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"&gt; 
          &lt;script type="text/javascript" src="../Scripts/jquery-1.5.2.min.js" &gt;&lt;/script&gt; 
           &lt;script type="text/javascript" src="../Scripts/jquery-datepicker.js" &gt;&lt;/script&gt;
          &lt;script type="text/javascript" language="javascript"&gt; 
          $(document).ready(function () 
         {
  
       $(function () {
           $("#&lt;%=txtDateFrom.ClientID %&gt;").datepicker();             
       });
  
   }); /*----------------------End of Document Ready----------------------------*/
  &lt;/script&gt;
  </code></pre>
  
  <p>Can someone who has worked with Master and content pages and have included jquery datetime picker in the content page help me please?</p>