Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using an Ajax Calendar Extender tool in my application.I do wanna disable the past days calendar cells so that the user wont be able to click or select those cells .Can anybody help me ??



Thanks
libin
Posted

Hai Friends,

Can u suggest me some useful links??


Thanks in Advance.
 
Share this answer
 
The source code for this control is readily available. I suggest you download it, review it, and modify as necessary.
 
Share this answer
 
Ajax calender extender by default doesn't support this facility. Either you have to change the implementation of AJAX Calender extender or use normal ASP.NET Calender control as below :


C#
protected void calEnglishStartDate_DayRender(object sender, DayRenderEventArgs e)
       {
           if(e.Day.Date.Date< DateTime.Now.Date)
           {
               e.Day.IsSelectable = false;
               e.Cell.ToolTip = "Cannot select past date.";

           }
       }
 
Share this answer
 

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