Regarding CalendarExtender Control....

Posted by Anilkumar431 under ASP.NET AJAX on 6/10/2014 | Points: 10 | Views : 1267 | Status : [Member] | Replies : 2
Hi all,

I am using Calendar Extender control in my asp.net application. I have a small requirement , if the user has selects the today's date he can not able to see the next coming 10 days......
Example : Today is 10/06/2014 and disable the dates from 10 to 20.. and he can has to see the date from once again 20/06/2014..


Please help me,
Thanx in advance...
Anilkumar




Responses

Posted by: Gsm_Gsv on: 6/10/2014 [Member] Starter | Points: 25

Up
0
Down
Hi,

Use the below code in Page_Load

Calendar1.EndDate = DateTime.Now.AddDays(10);



---------------------------------------
Live the life you've dreamed

Regards
MADHU

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

Posted by: Goud.Kv on: 6/10/2014 [Member] [MVP] Gold | Points: 25

Up
0
Down
Hello Anil,

Please refer below links of disabling dates in CalenderExtender.
http://vincexu.blogspot.in/2008/11/how-to-disable-dates-which-are-less.html
http://www.aspsnippets.com/Articles/Disable-Future-Dates-in-ASPNet-AJAX-Calendar-Extender-Control.aspx

Thanks & Regards,
Krishna

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

Login to post response