Select Multiple Non-Sequential Dates

By Goniey N (Mr. G)

How To Select Multiple Non-Sequential Dates From The Calendar Control At Code Behind....


+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

How to select multiple non-sequential dates at Code-Behind Using “add()” Function You Can Add Collection Of Dates. You Can Add Dates In Any Sequence, Because Finally The Collection Will Automatically Arrange Them In Soting Order For You.

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+


protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
    Calendar1.
SelectedDates.Clear();
    Calendar1.
SelectedDates.Add(new DateTime(2010, 7, 10));
    Calendar1.
SelectedDates.Add(new DateTime(2010, 7, 22));
    Calendar1.
SelectedDates.Add(new DateTime(2010, 7, 28));    
}



Select Multiple Non-Sequential Dates  (959 Views)