Calendar control in asp.net c#
<p>I need to add a calendar control with its associated buttons in asp.net with C#.</p>

<p>I have the code as below.</p>

<pre><code>&lt;asp:TextBox ID="txtDateFrom" CssClass="text-small" runat="server"
             BorderWidth="1px" ToolTip="Click to choose date"&gt;&lt;/asp:TextBox&gt;
&lt;asp:Label ID="lblFromError" CssClass="Error" runat="server"
           Text="*" Visible="False"&gt;&lt;/asp:Label&gt;
&lt;asp:Label ID="lblTo"  runat="server" Text="To" ForeColor="Black"&gt;&lt;/asp:Label&gt;
&lt;asp:CalendarExtender ID="txtDateFrom_CalendarExtender" runat="server"
                      TargetControlID="txtDateFrom"
                      Format="yyyy-MM-dd" TodaysDateFormat="yyyy d, MMMM"&gt;
&lt;/asp:CalendarExtender&gt;
</code></pre>
