Answers

Question and Answer:

  Home  Microsoft Web Forms

⟩ 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;

}

 157 views

More Questions for you: