Пример #1
0
 protected void calendar_visibiliychanged(object sender, CalendarVisibilityChangedEventArgs e)
 {
     if (e.IsCalendarVisible)
     {
         Response.Write("Calendar is visible");
     }
     else
     {
         Response.Write("Calendar is not visible");
     }
 }
 protected void ImgBtn_Click(object sender, ImageClickEventArgs e)
 {
     if (Calendar1.Visible)
     {
         Calendar1.Visible = false;
         CalendarVisibilityChangedEventArgs eventArgs = new CalendarVisibilityChangedEventArgs(false);
         CalendarVisibilityChanged(this, eventArgs);
     }
     else
     {
         Calendar1.Visible = true;
         CalendarVisibilityChangedEventArgs eventArgs = new CalendarVisibilityChangedEventArgs(false);
         CalendarVisibilityChanged(this, eventArgs);
     }
 }