SIGN UP MEMBER LOGIN:    
Blog

Disable particluar Date(s) from the Calender Control.

Posted by Ghanashyam Nayak Blogs | ASP.NET Controls in C# Apr 11, 2011
It will show you that how you can disable some particular date from the Calender Control of the ASP.Net.

  

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
          //Here whatever user pass the date into textbox then it will parse that date as DateTime…
          DateTime myDateTime = DateTime.Parse(txtUserDate.Text);
          if (e.Day.Date == myDateTime)
          {
                    //Disable Given Date....
                    e.Day.IsSelectable = false;
          }
}


share this blog :
post comment