Web Forms Question: Download Microsoft Web Forms PDF

How to disable some dates in Calendar control in web forms?

Tweet Share WhatsApp

Answer:

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
string date="02/01/2008";
DateTime dt = DateTime.Parse(date);
if (e.Day.Date == dt)
e.Day.IsSelectable = false;
}

Download Microsoft Web Forms PDF Read All 11 Microsoft Web Forms Questions
Previous QuestionNext Question
How to select multiple non-sequential dates at Code-Behind in Microsoft web forms?How to access a control inside a UserControl in .net?