john_pokemon
Newcomer
- Joined
- Sep 3, 2004
- Messages
- 1
Hi
I am trying to add multiple calendars to a page so that x number of months can be shown at once.
I am able to add the calendars into a placeholder and i get the desired number displayed. I am also able to render the calendar so that only THAT month is show, but not for calendar created by the placeHolder loop.
this my code for the calendar dupliaction
Dim cal As Calendar
Dim dt As Date
Dim intMonth As Integer
For intMonth = 0 To 11
cal = New Calendar
dt = New Date
dt = Now
cal.VisibleDate = dt.AddMonths(intMonth)
cal.OnDayRender = CalendarDRender
PlaceHolder1.Controls.Add(cal)
cal.ID = "cal" & intMonth
Next
how would i as set it so that cal.ONDayRender = dayRcontrol ( this been my day render code block)
thanks
john
I am trying to add multiple calendars to a page so that x number of months can be shown at once.
I am able to add the calendars into a placeholder and i get the desired number displayed. I am also able to render the calendar so that only THAT month is show, but not for calendar created by the placeHolder loop.
this my code for the calendar dupliaction
Dim cal As Calendar
Dim dt As Date
Dim intMonth As Integer
For intMonth = 0 To 11
cal = New Calendar
dt = New Date
dt = Now
cal.VisibleDate = dt.AddMonths(intMonth)
cal.OnDayRender = CalendarDRender
PlaceHolder1.Controls.Add(cal)
cal.ID = "cal" & intMonth
Next
how would i as set it so that cal.ONDayRender = dayRcontrol ( this been my day render code block)
thanks
john