Web Forms Question:
How to disable some dates in Calendar control in web forms?

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;
}
{
string date="02/01/2008";
DateTime dt = DateTime.Parse(date);
if (e.Day.Date == dt)
e.Day.IsSelectable = false;
}
Previous Question | Next 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? |