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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T23:35:29+00:00 2026-05-11T23:35:29+00:00

I am using UpdatePanel to trigger a button click event, which saves some 100+

  • 0

I am using UpdatePanel to trigger a button click event, which saves some 100+ files on a designated folder.
I want the server to update the client about the status and count of files being saved.

protected void btnSave_Click(...){    
  var filesToSave = GetFilesToSave();
  foreach(var fileToSave in filesToSave){
    SaveProcessedFile(fileToSave);//It takes almost 30seconds to save a file
    UpdateStatusOnClient(fileToSave); //Don;t know what should be done here???????????
  }
}

I am looking for some implementation of “UpdateStatusOnClient” from where i can send a desired message to client, or update a label message asynchronously so that the client knows the progress and status of files being saved.

Thanks.

  • 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-11T23:35:29+00:00Added an answer on May 11, 2026 at 11:35 pm

    It’s not that easy… You can’t actively send something from the server to the client. Only the client can make a request to query the status.

    Now you already have a request running (the click on the button). But that will only finish once the 100 files have been saved. In theory, you could send a small bit of data by writing to the response and then flushing it to make sure that data is transmitted. I’ve never tried that, and I don’t know any Ajax client that could deal with such a response.

    What I would do is this: Save the current status in the ASP.NET session object, and then make another Ajax request on a timer to query the status every X seconds. Be aware that the request on the button is still running while you do this (it could cause problems). You may want to trigger an async action instead.

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

Sidebar

Ask A Question

Stats

  • Questions 135k
  • Answers 135k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you asking why you need many-to-many relationships (which is… May 12, 2026 at 7:03 am
  • Editorial Team
    Editorial Team added an answer I have found a couple of ways to do this.… May 12, 2026 at 7:03 am
  • Editorial Team
    Editorial Team added an answer You could simply use the power of mod_rewrite to do… May 12, 2026 at 7:03 am

Related Questions

I have a web application. It is separated into three sections, each with its
I am using an UpdatePaenl in an asp.net page. It has a button to
I have a form containing a list of input fields that the user populates
I have a aspx page that has a UpdatePanel and a asp timer. the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.