title: DatePicker disappears after postback
body: <p>I have an asp:TextBox associated to a jquery DatePicker. This input has a onTextChangedEvent that updates a Literal Control. </p>
  
  <p>All this code is inside an UpdatePanel so the Literal Control changes but the page doesn't refresh. </p>
  
  <p>The problem I'm facing is that when the event fires, the image that displays the DatePicker disappears. Here's a piece of my code:</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel" runat="server"&gt;
      &lt;ContentTemplate&gt;
  
          &lt;asp:TextBox runat="server" OnTextChanged="EditFromDate_TextChanged"
          AutoPostBack="true"&gt;&lt;/asp:TextBox&gt;
  
      &lt;/ContentTemplate&gt;
   &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>Then I have:</p>
  
  <pre><code>$(document).ready(function()
  {
      $("#EditFromDate").datepicker({ ... });
  });
  </code></pre>
  
  <p>Should I put the code that initiates the DatePicker elsewhere? 
  I've tried placing it in Page Load using Page.RegisterStartup but same result.</p>
  
  <p>Thanks! </p>