Disable some dates in Calendar control

Total Post:29


 2408  View(s)
Rate this:
I want to disable some dates in calendar control but can not find the suitable solution of its
please solve it
thanks in advance!
  1. Re: Disable some dates in Calendar control

    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; 

      Modified On Mar-29-2018 04:25:47 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.