Web Forms Question:

Download Job Interview Questions and Answers PDF

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

Microsoft Web Forms Interview Question
Microsoft Web Forms Interview Question

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 Interview Questions And Answers PDF

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?