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

  • Home
  • SEARCH
  • 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 567531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:05:33+00:00 2026-05-13T13:05:33+00:00

When I hit the run button (in my Default.aspx), a process starts (this process

  • 0

When I hit the run button (in my Default.aspx), a process starts (this process contacts a webservice to get some files, etc). How do I:

  1. Ensure that only a single process is running at a time (i.e. if I refresh the browser, I don’t want to start the process a second time)

  2. Track progress – there are 4 points of the process (at 25%, 50%, 75%, 100%) that I want to track, and when each part completes, I want to update the progress bar. I have a status object for the running process, but the question is how to update the progress bar automatically?

  3. Do I need to use threads to achieve the above two?

  • 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-13T13:05:34+00:00Added an answer on May 13, 2026 at 1:05 pm

    Answering them in reverse order:

    1. Yes. And you should have an object to encapsulate your thread.

    2. You could have a public member of your object which contains the % done of your process. You could poll this periodically. The way that you would do this from your HTML page is probably an AJAX request to make your progress bar the smoothest.

    3. You need to do some thread synchonization. Maybe through a Mutex. Here’s a good example of how to do this (scroll down to Mutex).

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

Sidebar

Related Questions

In a Win32 C# App, when I run my application and hit some button
This happens after I hit Build and Go to run my app on my
When I hit the run button in Flash Builder 4, an older version of
When we hit run button in XCode4 & if project is already running, it
Whenever I hit the sign in button I get the following error: NoMethodError in
My iOS app doesn't run in background. When home button is hit the app
When my users click the login button I want to hit my webservice. I
I've hit this problem recently, and I've been stuck at it for a few
I have a winform with several buttons, when I hit a button, it runs
I accidently wrote some code today that was like this: Private Sub Foo() Dim

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.