Disable previous Dates in ajaxToolkit CalendarExtender

 picture · May 4, 2009 · Viewed 39.6k times · Source

How to disable previous dates while using in ajaxToolkit CalendarExtender

Answer

Dan picture Dan · Aug 19, 2009

One Option is to use a rangevalidator on the textbox the calenderextender is bound to. Ie if you have the TargetID of the calendar extender set to tb1 add a rangeValidator to flag when the contents of tb1 is before today.

Another option is using javascript and here is a good example: http://www.dotnetcurry.com/ShowArticle.aspx?ID=149 TIP 6.