Hi David,
Are you remembering to set the visibleDate?
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
If Not IsPostBack Then
Dim dtNow As Date = DateTime.Now
Calendar1.SelectedDate = dtNow
Calendar1.VisibleDate = dtNow
End If
End Sub
Ken
Microsoft MVP [ASP.NET]
"David Hamilton via .NET 247" <> wrote in message
news:...
I'm having trouble with the Calendar Class. I'm setting it's selected date
in the page_load event, which is being done. The but control doesn't then
display the month corresponding to it's selected date, rather it just
displays the current month instead. If I surf the control to it's selected
date the correct date is always highlighted.
What do I have to do to show the correct month?
Thanks for your time
David
-----------------------
Posted by a user from .NET 247 (
http://www.dotnet247.com/)
<Id>HVetX85jVEu+kt8OhFlUBw==</Id>