问题
If you have used Calendar Extender, i am looking for ways to disable dates based on selection from another calendar selected date. In a project management application there are end and start dates, i am looking for ways to validate these on client. Someways would require postback which i am not willing to perform. There seems to be StartDate and EndDate properties for the calendar on the server, but does not seem to have any client side counterparts. Have you got any ideas how i can perform this.
回答1:
You can overwrite _cell_onclick javascript event to show an alert if a wrong date is chosen depending on the selected date in the other calendar.
Here is an example: Ajaxtoolkit Calendar Extender close button and date restriction
回答2:
I know it's too late to reply this post but it my help someone
Disable dates in Ajax Calendar Extender with different dates examples
来源:https://stackoverflow.com/questions/8711096/disable-dates-conditionally-with-asp-net-ajax-calendar-extender