Link to home
Start Free TrialLog in
Avatar of prodier
prodier

asked on

Calendar control - Restrict Next OR Previous Months HyperLink

Hello,

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...
Avatar of Torrwin
Torrwin
Flag of United States of America image

Have you tried Calendar1.ShowNextPrevMonth = False ?
ASKER CERTIFIED SOLUTION
Avatar of Abirami Rajendran
Abirami Rajendran
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial