Restricting User Not to Select Previous Dates in Calander Control

<script type="text/javascript">
function checkDate(sender,args)
   if (sender._selectedDate < new Date())
        alert("You cannot select a day earlier than today!");
        sender._selectedDate = new Date();
        // set the date back to the current date

<ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtfrmdate" 

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s