Posted on: 10/9/2015 4:53:11 PM | Views : 1156

Hi there,
I have a calendar control and 2 text boxes in a form with Submit, Delete and Cancel buttons.
I want to bind calendar control to a table in the database.  When a date is clicked in the calendar, if there is any data associated with that day, then I want to populate in the 2 form fields. If there is no data associated with that day, then form fields will be blank so user can enter information and click submit. 
I've never used Calendar control before.
I got the calendar and form ready. I got the data in the datatable but now I don't know how to associate that data from datatable to calendar and how to display it when a date is click in the form.
Here is my code so far:
<form id="addForm" method="post" runat="server"> <p><asp:Calendar id="calSchedule" runat="server"></asp:Calendar></p> <p>Date: <a ...

Go to the complete details ...