Rank: Member Groups: Member
Joined: 6/8/2007 Posts: 19
|
Probably a simple solution. I can retrieve the currently selected day, on AutoPostbackOnSelect postback and OnSelectionChanged, by retrieving Calendar1.SelectedDate, but is there a way to retreive the current month name, and year, when the month is changed, using AutoPostbackOnScroll and OnScroll? Something like Calendar1.CurrentMonth, would make sense to me.
Thanks,
John.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
Everything is Calendar1.SelectedDate. For example, Calendar1.SelectedDate.Month.
Thanks
|
Rank: Member Groups: Member
Joined: 6/8/2007 Posts: 19
|
Hi,
But what if no-one has clicked on a date? What if someone has just clicked on the month scroller? How can I retrieve the currently displyed month/year if a date hasn't been clicked on?
Thanks,
John.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi John,
In that case you would be looking at Calendar1.VisibleDate instead of SelectedDate.
Thanks
|