Welcome Guest Search | Active Topics | Sign In | Register

eoCalendar - how to retrieve current month? Options
turpya
Posted: Tuesday, July 8, 2008 11:24:31 PM
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.
eo_support
Posted: Wednesday, July 9, 2008 7:17:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi,

Everything is Calendar1.SelectedDate. For example, Calendar1.SelectedDate.Month.

Thanks
turpya
Posted: Wednesday, July 9, 2008 8:08:39 PM
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.
eo_support
Posted: Wednesday, July 9, 2008 8:12:36 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi John,

In that case you would be looking at Calendar1.VisibleDate instead of SelectedDate.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.