I am in the processes of taking the ASP calendar and adding the DeyRender function to pull from a database and list all events that are scheduled for that day. When I was populating the cell at first I was using a span and just appending to a string writer and then writing to the span to create the whole list of events.

What I am doing now is trying to rewrite it to instead of just writing text to the form I want to populate it with objects so later in developement I can add a drag and drop function so I can just drag an event to a different day and i relized that writing the events out in html would not work.

My question is, what should I use to populate the cells of the calendar so i can add a drag and drop functionality to it? Here is my DayRender event.

Code:
		protected void eventscalendar_DayRender(Object Src, DayRenderEventArgs E)
		{
			if (E.Day.IsOtherMonth == false)
			foreach (DataRow row in ds.Tables["Features"].Rows)
			{
				DateTime eventdate = (DateTime)row["DueDate"];
				if (eventdate.Date.DayOfWeek.ToString() != "Saturday" && eventdate.Date.DayOfWeek.ToString() != "Sunday")
					if (eventdate.Date.Equals(E.Day.Date))
					{
 
                                             \\Code Here To Populate Cells

					}
			}
			else
				E.Cell.Text = "";
		}