Click here to Skip to main content
16,016,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i develop calender using javascript but my problem is i want hide or does't allow previous date. only allow present and next......is there any solution for that
Posted
Updated 11-Mar-12 1:57am
v3

1 solution

In AjaxToolKit calendar control, StartDate and EndDate properties helped for the user defined date range.

VB
<ajaxToolkit:Calendar runat="server"
    TargetControlID="Date1"
    CssClass="ClassName"
    Format="MMMM d, yyyy"
    PopupButtonID="Image1" />


StartDate - Indicates start date for range that available for selection.
EndDate - Indicates end date for range that available for selection.
 
Share this answer
 
Comments
tirumalararao 10-Mar-12 9:50am    
ok thank you but i want only present date every day it can change automatically.it doen't shows yesterday date is there any solution in ajax

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900