title: Using JQuery datepicker() in DetailsView insert/Edit templates
body: <p>I am having a hard time getting the jquery datepicker to work with my DetailsView insert template.  I have tried numorous ways of trying to get this to work and I have not been successful inside of the Template control.  The code works fine outside of the DetailsView, but I need it inside.  Here is my code:</p>
  
  <pre><code>&lt;link href="jquery-ui-1.7.3.custom.min.css" rel="stylesheet" type="text/css" /&gt;
  &lt;script type="text/javascript" language="javascript" src"jquery-ui-1.7.3.custom.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" language="javascript" src"jquery-1.6.2.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" language="javascript"&gt;
  
  function pageLoad(sender, args) 
      {
          $('.DateControl').datepicker();
      };
  &lt;/script&gt;
  
  &lt;asp:templatefield HeaderText="Action Date" SortExpression="Action_Date"&gt;
      &lt;InsertItemTemplate&gt;
          &lt;asp:Textbox runat="server" Text='&lt;%# Bind("Action_Date") %&gt;' id="textAction" CssClass="DateControl"&gt;
          &lt;/asp:textBox&gt;
      &lt;/InsertItemTemplate&gt;
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Any help on what I could possibly doing wrong would be helpful. oh, and I am working with SharePoint and I will not be able to use the Ajax Controls for a datepicker. </p>