I've been looking at the dayrender event and as far as i understand, it fires before rendering each day in a calendar.
In the helpdesk sample application this event has a code which connects to a database and determines whether the date should have a special formatting.
My question in this is, does this mean that for each day which is visible in the calendar, i.e. "the current month" a connection is opened making the application open a sql connection up to 31 times?
If so, is there any better way of doing this?
My own thoughts were that perhaps the data for the current month could be loaded beforehand and stored in a collection which I think must be stored in viewstate, and then in the dayrender event data is checked in the viewstate for formatting?
Recommendations?
In the helpdesk sample application this event has a code which connects to a database and determines whether the date should have a special formatting.
My question in this is, does this mean that for each day which is visible in the calendar, i.e. "the current month" a connection is opened making the application open a sql connection up to 31 times?
If so, is there any better way of doing this?
My own thoughts were that perhaps the data for the current month could be loaded beforehand and stored in a collection which I think must be stored in viewstate, and then in the dayrender event data is checked in the viewstate for formatting?
Recommendations?