ASP Net Controls ASP.Net Tutorial

<%@ Page Language="C#" %>

    protected void Calendar1_SelectionChanged(object sender, EventArgs e)
    {
        Label1.Text = "You selected the following date/dates:
";
        
        for (int i=0; i            Label1.Text += Calendar1.SelectedDates[i].ToShortDateString() + "
";
        }
    }



    Using the Calendar Control


    
    

                 OnSelectionChanged="Calendar1_SelectionChanged" 
         SelectionMode="DayWeekMonth">