Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6089619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:07:13+00:00 2026-05-23T12:07:13+00:00

I am working with an ASP site which requires a reminder email to be

  • 0

I am working with an ASP site which requires a “reminder” email to be sent out every x, y and z minutes. I have attempted to start a timer upon an event (like a button click or page load) but this proved to be unreliable as the timers would be disposed of when the server performed an automatic backup or when the aspx.cs file was updated.

My new idea is to have a timer constantly running (a check is performed on a page load which ensures its running) and, when it elapses, it checks to see if either x, y or z minutes have elapsed. So if y elapses, it needs to send out a “reminder” email and then restart y’s timer.

void ParentTimer_Elapsed(object sender, ElapsedEventArgs e)
{
    foreach(Timer childTimer in ChildTimerList)
    {
        if(childTimer.Enabled == false) // And therefore has elapsed
        {
            sendReminderEmail(childTimer);
            childTimer = checkAndSetCorrectInterval(childTimer);
            childTimer.AutoReset = false;
            childTimer.Enabled = true;
        }
    }
}

The list ChildTimerList would obviously contain x, y and z.

Can anybody forsee me running into any problems with this, or are there any better ways to approach it? My perfect solution would be a timer running costantly which doesn’t need to be started upon an event but I don’t think this is possible with ASP.

Furthermore, where should I initialise my parent timer and childlist variables? In a class within the App_Code folder or, statically, in a code-behind aspx.cs page?

Thanks in advance.

EDIT:

Yes, I do mean ASP.NET… 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:07:14+00:00Added an answer on May 23, 2026 at 12:07 pm

    I would probably implement this with a simple console application (responsible for sending e-mails) and Task Scheduler in Windows (responsible for running the application on a schedule). Keep it simple. And robust.

    Edit: Provided that you are in control of the server – it will probably not be the best solution in a shared hosting environment where you’re only allowed to run web apps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an ASP.NET MVC site which will have a database. While I'm
We have an ASP.NET MVC 3 web site which isn't working after it's deployed
I have a question. I working on one site on Asp.Net, which uses some
I have an Asp.Net site which uses google SMTP to send emails.. its working
I have this classic ASP site which has been working fine until we updated
I'm working on Payment Gateway for large e-Commerce site which is based on ASP.NET
I have a working copy of asp.net mvc site locally. I just uploaded the
In one of the ASP .Net site we are currently working we have a
I am working with an asp.net 2.0 site (call it site 1) which has
I started using dotless in my asp.net site which requires a special httphandler to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.