I want to disable some dates in calendar control but can not find the suitable solution of its
please solve it
thanks in advance!
Disable some dates in Calendar control
Ask by Rajesh Goswami
Updated 24 Aug 2011
Hi rajesh
Check this line of code on DayRender event on calendar control
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e) { string date="08/24/2011"; DateTime dt = DateTime.Parse(date); if (e.Day.Date == dt) e.Day.IsSelectable = false; }