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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:36:56+00:00 2026-05-28T00:36:56+00:00

I have an asp.net page that will need to do some asynchronous work, e.g

  • 0

I have an asp.net page that will need to do some asynchronous work, e.g visiting URLs and downloading some content which may take several minutes. During this time, as each task completes it needs to update something on the page to indicate progress etc. What’s the preferred approach for this? calling some client side javascript and passing the data to it?

I’m trying to use the .NET Task Parallel Library stuff for the asynchronous actions.

Thanks for your time

  • 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-28T00:36:57+00:00Added an answer on May 28, 2026 at 12:36 am

    Because of the way the internet works you would need to have client side script poll the server. The server is always listening for a request from the client but clients aren’t always listening for a response from the server so unless the client initiated the request it won’t be waiting for a response.

    As for how to do it, I have used JQuery to hit an ASP.Net web service in the past and been very pleased. If you go this route ASP.net will automatically convert between JSON to .Net objects and back again which is very handy.

    Here is a post showing you how to use JQuery to hit a web service, and another one on how to set up the web service on the server.

    Also, you typically don’t want a web service that takes several minutes to complete since this can cause you to run out of threads on the server if the page is hit often. You may want to see about setting up a scheduled task to pre-calculate this data or adding indexes to your data source so you can look it up more quickly. Either way as long as you are using AJAX your user’s web-interaction won’t be locked down (i.e. they will still be able to click on links and interact with your site. If they navigate away from the page though while it is loading the browser will close the connection and the user will to start a new request and wait the whole time all over again to get the response.)

    Unfortunately I don’t know anything about the new .NET Task Parallel Library but perhaps one option you could pursue, depending on what you are querying, would be to make multiple AJAX requests for different chunks of the data. That would automatically make things parallel on the server side while giving you the added benefit of showing progress on the client side as each of those requests came back independently. If that doesn’t work another popular pattern to notify your user of progress on long running requests is to pass back data every so often along with a “continuation token.” As long as the client-side code receives a continuation token it knows there is more data and it passes that token back to the server with the next request. The server then uses this token to pick up where it left off last time. So it could be something as simple as which RowID it stopped on last time.

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

Sidebar

Related Questions

I have an ASP.Net page that will be hosted on a couple different servers,
I have an asp.net page that calls a dll that will start a long
I have a button on an ASP.Net page that will call Response.Redirect back to
I'll have an ASP.net page that creates some Excel Sheets and sends them to
I have an ASP.NET web page that displays a variety of fields that need
I have an ASP.NET page that uses a repeater nested within another repeater to
I have an ASP.NET page that uses the ASP.NET Ajax Control Toolkit TabContainer .
We have an ASP.Net page that uses a checkbox to toggle between a list
I have an ASP.Net page that contains a <div> with an <img> tag within.
I have an ASP.NET page that calls to a WCF service. This WCF service

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.