Пример #1
0
        private void checkForReminders_ori()
        {
            List <vw_Reminder> reminders = SchedulerManager.GetUpcomingReminders(userID);

            if (reminders != null && reminders.Count > 0)
            {
                Session["vw_reminders"] = reminders;

                string js = "PopupCenter('../../Content/Reminder.aspx', 'Reminder', 600, 400);";

                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "rk", js, true);
            }
        }
Пример #2
0
        public static string checkForReminders()
        {
            string hasReminder = "0";

            try {
                int userID = Convert.ToInt32(HttpContext.Current.Session["UserID"]);
                List <vw_Reminder> reminders = SchedulerManager.GetUpcomingReminders(userID);

                if (reminders != null && reminders.Count > 0)
                {
                    hasReminder = "1";
                    HttpContext.Current.Session["vw_reminders"] = reminders;
                }
            }
            catch (Exception ex) {
                Core.EmailHelper.emailError(ex);
            }

            return(hasReminder);
        }