Adding Custom Content to Calendar
You can make appointment-style calendars by adding content in the OnDayRender event. Two of the arguments
for OnDayRender are the Day that is being rendered and its Cell object. Custom text can be added to the
cell for a particular day by adding it as a LiteralControl to the Cell object's Controls collection, as shown in the following example.
Dim Hol As String = GetHoliday(Day.Date)
If Hol <> String.Empty Then Cells.Controls.Add(New LiteralControl("<br>" + Hol))
VB
Copyright 2001 Microsoft Corporation. All rights reserved.