Click here to Skip to main content
15,883,928 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi ,
i am using ajax Calendar extender control in my project to search by date. what is my need is i want to disable all the dates in the Calendar control. only first day and last day of any month should be enable for select. user must select date first of any month and last date of month .



C#
CalendarExtender1.EndDate = DateTime.Now;


i tried below code which disable future dates only.
Posted
Updated 13-Mar-14 3:19am
v6
Comments
Sergey Alexandrovich Kryukov 13-Mar-14 12:17pm    
You are very welcome. As the little communication problem we has is now resolved, I removed all the discussion posts as redundant. :-)
Does the Solution 1 help you?
—SA

1 solution

 
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