I would like to do something like this: http://jqueryui.com/datepicker/
However, I'm not exactly sure how:
- 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".
- When the user hit the submit button, how am I going to pass the date in the
textbox
to the server side code?
Here are parts of my code:
.aspx:
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent1" runat="server">
<p>Date: <input type="text" id="datepicker"></p>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" />
<asp:Label ID="lblOutput" runat="server" Text="Label"></asp:Label>
</asp:Content>
.cs:
protected void btnSubmit_Click(object sender, EventArgs e)
{
lblOutput.Text = //The date from the datepicker
}