G
Guest
How can I get the month and year a calendar control current displaying?
My problem is I want to load a list of event to a calendar so that it
display difference style if there a event for a day.
My initial idea is load all events from database and store it in a
DataTable. In the DayRender event, loop thr the DataTable and see if it equal
to e.Day and alter the style if that is.
However when the event table is large, it hurt performance. So how get I
know what month and year the calendar control is current displaying, thus I
can only load the events of specified month and year only?
Thanks in advance.
Jason
My problem is I want to load a list of event to a calendar so that it
display difference style if there a event for a day.
My initial idea is load all events from database and store it in a
DataTable. In the DayRender event, loop thr the DataTable and see if it equal
to e.Day and alter the style if that is.
However when the event table is large, it hurt performance. So how get I
know what month and year the calendar control is current displaying, thus I
can only load the events of specified month and year only?
Thanks in advance.
Jason