ASP Net Controls ASP.Net Tutorial

<%@ Page Language="VB" %>

    Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, _
      ByVal e As System.EventArgs)
        Label1.Text = "You selected the following date/dates:
"
        
        For i As Integer = 0 To (Calendar1.SelectedDates.Count - 1)
            Label1.Text += Calendar1.SelectedDates.Item(i).ToShortDateString() & _
              "
"
        Next
    End Sub



    Using the Calendar Control


    
    

                 OnSelectionChanged="Calendar1_SelectionChanged" 
         SelectionMode="DayWeekMonth">