title: ASP.NET with jQuery DatePicker
body: <p>I would like to do something like this: <a href="http://jqueryui.com/datepicker/" rel="nofollow">http://jqueryui.com/datepicker/</a></p>
  
  <p>However, I'm not exactly sure how:</p>
  
  <ol>
  <li>I have a masterpage-content page, and when I tried to copy that code and paste them into the content page, it will say "XXXX cannot be in the content region".</li>
  <li>When the user hit the submit button, how am I going to pass the date in the <code>textbox</code> to the server side code? </li>
  </ol>
  
  <p>Here are parts of my code:</p>
  
  <p>.aspx:</p>
  
  <pre><code>&lt;asp:Content ID="Content4" ContentPlaceHolderID="MainContent1" runat="server"&gt;
      &lt;p&gt;Date: &lt;input type="text" id="datepicker"&gt;&lt;/p&gt;
      &lt;asp:Button ID="btnSubmit" runat="server" Text="Submit" /&gt;
      &lt;asp:Label ID="lblOutput" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>.cs:</p>
  
  <pre><code>protected void btnSubmit_Click(object sender, EventArgs e)
  {
      lblOutput.Text = //The date from the datepicker
  }
  </code></pre>