Author: Skag55 | Posted on: 11/26/2009 7:26:00 AM | Views : 254

Hi all,
I have a database with events with fields like, day, month, year, eventname etc....
I want to display them in a calendar view, incide the calendar cell like e.Cell..... and so on. I know how to do that.
What I want to do is to display each event, depending on its date, on the appropriate Cell (day). However I don't know what's the quickest way to do that.
At the moment I have in mind something like:
if (e.Day.Date.Day.ToString() == reader["Day"].ToString() && e.Day.Date.Month.ToString() == reader["Month"].ToString() && e.Day.Date.Year.ToString() == reader["Year"].ToString())
which obviously is very noobish and slow. I didn't intend to do it in this way, I just couldn't figure out any other quick way to do it. I know a dataset might be a way to go, I'm not sure though how to do the quickest and most effective search and preview ...

Go to the complete details ...