Reputation: 1477
I'm trying to work with the ASP calendar control and (for starters) highlight the specific days on the calendar that matches DueDate in the 'task' table. I know how to highlight a cell using the DayRender event, but how do I do this in accordance to the database table?
Would then also like to be able to click on the highlighted cell and see details of the task associated to that date in some sort of box next to the calendar.
Any pointers on how I can solve this?
Upvotes: 0
Views: 573
Reputation: 1084
Pseudo-code:
Name
and DueDate
at least)DayRender
handler you check if current day's date exists in the loaded tasks's due dates, if it does, highlight it with the color of your choiceSelectionChanged
handler you obtain the selected day's date, and look through the loaded list of tasks for any tasks that have that date as their due date, and populate whatever box with those tasks.Upvotes: 1