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...
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...
Have you tried Calendar1.ShowNextPrevMont h = False ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.