How to disable previous and next date in calender only show current date

Posted by Shail under ASP.NET on 7/30/2014 | Points: 10 | Views : 489 | Status : [Member] | Replies : 3
Hi Sir

How to disable previous and next date in calender. only (enable)show current date




Responses

Posted by: Bandi on: 8/1/2014 [Member] [MVP] Platinum | Points: 25
Posted by: Manimaddu on: 8/12/2014 [Member] Starter | Points: 25

Up
0
Down
http://www.codeproject.com/Articles/259776/Extending-an-AJAX-Toolkit-Control-Disabling-past-d

Thanks & Regards,
Mani Kumar

Shail, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kmandapalli on: 8/14/2014 [Member] Silver | Points: 25

Up
0
Down
Hi,

In the page load, set the start date and end date to datetime.now as below,

CalenderControl.StartDate = DateTime.Now;
CalenderControl.EndDate = DateTime.Now;

Mark as answer if satisfied...

Regards,
Kavya M.

Kavya Shree Mandapalli

Shail, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response