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 6694403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:05:52+00:00 2026-05-26T06:05:52+00:00

I am new in ASP, so it may be a basic question. I need

  • 0

I am new in ASP, so it may be a basic question.

I need to write a site thatdo the following flow:

  • user submit a request

  • the site says: Thank you, you will be notified to e-mail when I’ll finish.

  • user ends session

  • site do all the long proccess it have to

  • site send an e-mail

Is it possible to continue the proccess after user ends the main session?

I read a bit, and I see that async pages won’t do, so to use simple threading?

What is the best way to implement the flow?

Thanks,
Sara

  • 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-26T06:05:52+00:00Added an answer on May 26, 2026 at 6:05 am

    You could use simple threading:

    protected void BtnProcess_Click(object sender, EventArgs e)
    {
        StatusLabel.Text = "Thank you, you will be notified to e-mail when I'll finish";
        new Thread(() => 
        {
            // some processing ... 
        }).Start();
    }
    

    The problem with this approach is that IIS could recycle your ASP.NET application under some conditions. For example after a period of inactivity (no user requests), or if a memory threshold is hit, … This will result in aborting the execution of the long running operation.

    For this reason it is better to implement such long running operations in separate services, such as a Windows Service. So you could for example host a WCF Service inside a Windows Service. This service will do all the long processing and sending of email. Then from within the ASP.NET application you could simply invoke the corresponding method of this WCF service.

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

Sidebar

Related Questions

I'm new to ASP.NET MVC so this may be a stupid question. I have
I'm new to OOP so this may be a dumb question to ask.. When
Probably its my first question in ASP.Net. I am new to Web-Programming and trying
I realize this may be a simple problem, but I am new to ASP.net
The new ASP.NET routing is great for simple path style URL's but if you
My new ASP.NET MVC Web Application works on my development workstation, but does not
I'm using the new ASP.Net ListView control to list database items that will be
I create new ASP.NET web application that use SMTP to send message. The problem
I have a new ASP.NET MVC project (my first), and I had been running
I'm developing a new ASP .NET website which is effectively a subset of the

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.