Web Forms Question:
Download Questions PDF

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


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?