Calendar control - limit possible months?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I limit the possible months a user can navigate to in the calendar
control? I only want users to be able to select dates from the current year
and the previous year. Is that possible?
 
lanem said:
How can I limit the possible months a user can navigate to in the calendar
control? I only want users to be able to select dates from the current
year
and the previous year. Is that possible?

To prevent selection only, add a RangeValidator to the calendar. Don't
forget to set the type as "Date".
But this will not prevent navigation.

To prevent navigation on the client, I don't know. On the server, handle the
VisibleMonthChanged event.
 
Back
Top