Calendar control - Restrict Next OR Previous Months HyperLink
Posted on 2005-04-22
I have a ASP.NET Calendar control displaying dates. Using the date render function, I restrict the days selectable for the earliest or latest days.
For example, If the earliest date is March 15, I just show grayed out dates for all days up to March 14.
I would like to add to this functionality by removing the "Previous Month" Hyperlink, so the user doesn't keep hitting back and get lost. Conversely, I would like to remove the "Next Month" Link when the user reaches a month where the day equals the upper limit.
Is there a way to dynamically remove either the Next Month OR Previous Month links from a calendar control, depending on what limit is reached?
Thanks in advance...