Hi,
found this code by Sushila B. Patel, which shows the events for the current
month, but shows nothing if its from another month since it has e.Cell.Text
= "" if .Day.IsOtherMonth =true any idea to implement that part?
Private Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DayRenderEventArgs) Handles Calendar1.DayRender
'If the month is CurrentMonth
If Not e.Day.IsOtherMonth Then
Dim dr As DataRow
For Each dr In dsCalendar.Tables(0).Rows
'If UserDate is not Null
If Not dr("UserDate") Is DBNull.Value Then
Dim dtEvent As DateTime = dr("UserDate").ToString
'If UserDate =CalendarDate
If dtEvent.Equals(e.Day.Date) Then
e.Cell.BackColor = Color.PaleVioletRed
End If
End If
Next
'If the month is not CurrentMonth then hide the Dates
Else
e.Cell.Text = ""
End If
End Sub
Thanks in Advance
Shuvro Mazumder [MSFT] - 28 Jan 2005 03:21 GMT
Do you want to show events on other months as well?
- Shuvro

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
> Hi,
>
[quoted text clipped - 24 lines]
>
> Thanks in Advance
Manoj Paramu Das - 28 Jan 2005 15:56 GMT
Yes Id o want to display events for the other months as well.
> Do you want to show events on other months as well?
>
[quoted text clipped - 30 lines]
>>
>> Thanks in Advance