protected virtual void onDateSelected(DateSelectedEventArgs e)
 {
     if (DateSelectedEvent != null)
     {
         DateSelectedEvent(this, e);
     }
 }
        protected void Calendar1_SelectionChanged(object sender, EventArgs e)
        {
            txtDate.Text      = Calendar1.SelectedDate.ToShortDateString();
            Calendar1.Visible = false;
            CalendarVisibilityChangedEventArgs CalendarVisibilityChangedEventData = new CalendarVisibilityChangedEventArgs(false);

            OnCalendarVisibilityChanged(CalendarVisibilityChangedEventData);

            DateSelectedEventArgs dateSelectedEventData = new DateSelectedEventArgs(Calendar1.SelectedDate);

            onDateSelected(dateSelectedEventData);
        }
 private void CalendarUserControl1_DateSelectedEvent(object sender, DateSelectedEventArgs e)
 {
     Response.Write("Selected Date:" + e.SelectedDate.ToShortDateString());
 }
 protected void CUC_DateSelectedEvent(object sender, DateSelectedEventArgs e)
 {
     Response.Write(e.SelectedDate.ToShortDateString());
 }