Hi UdayaMohan,
UdayaMohan:How to disable the Previous dates in AjaxCalendar control.
To achieve your goal, please refer to this code:
<script type="text/javascript" language="javascript">
var cal;
function pageLoad() {
cal = $find("<%=TextBox1_CalendarExtender.ClientID%>");
cal.add_hidden(checkValue);
}
function checkValue(){
if (cal._selectedDate < new Date())
{
alert("Please select a future day!");
cal.show();
}
}
</script>
I hope all above can help you, any other questions, please let me know, thanks.
Based regards,
Zhi-Qiang Ni
Please remember to click “Mark as Answer” on the post that helps you , and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.