Set the SelectionMode property of Calendar Control to DayWeek/ DayWeekMonth.
Code for the OnSelectionChanged as follows:
VB.NET
Dim day As DateTime
Dim strval As String
For Each day In Calendar1.SelectedDates
strval += (day.Date.ToShortDateString() & '<br>')
Next
Response.Write(strval)
C#
string strval='' ;
foreach (DateTime day in Calendar1.SelectedDates)
{
strval += (day.Date.ToShortDateString() + '<br>');
}
Response.Write(strval);
}
Share with