How to use Asp.net calendar control
Any time you want your users of the application, to provide a date, it is better to provide a calendar control from which they can select the date. In this session we will see how to do it. Drag and drop a TextBox, ImageButton and a Calendar control on the webform. Create an Image folder and add the following Calendar.png to the Images folder. Set the ImageUrl property of the image button to Calendar.png ImageUrl="~/Images/Calendar.png" HTML of the ASPX page <asp:TextBox ID="TextBox1" runat="server" Width="115px"></asp:TextBox> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Calendar.png" onclick="ImageButton1_Click" /> <asp:Calendar ID="Calendar1" runat="server" ondayrender="Calendar1_DayRender" onselectionchanged="Calendar1_SelectionChanged"></asp:Calendar> Code-Behind page code protected void Pag...