protected void DayPilotCalendar1_OnTimeRangeSelected(object sender, TimeRangeSelectedEventArgs e) { int id = ConnectDB.LoadUserId(Session["user"].ToString()); ConnectDB.CreateAppointment(id, e.Start, e.End); LoadAppointments(); LoadCalendarData(); }