How To Disable Some Dates In Calendar Control?

By Goniey N (Mr. G)

You Can Disable Your Given Date From The Calendar....

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
    string UserDate="08/03/2010";
   DateTime dt = DateTime.Parse(UserDate);
    if (e.Day.Date == dt)
    {
         //Disable Given Date....
        e.Day.IsSelectable = false;
    }
}

How To Disable Some Dates In Calendar Control?  (933 Views)