How to Stop UpdatePanel Progress Loading after completion of file download

Aypn CNN 446 Reputation points
2023-01-18T16:55:12.65+00:00

Hi,

I am downloading file (from folder) properly, after completion of file down, unable to stop the progress loading, how to fix this.

Pls ref my attached code, VB.Net & asmx file download code.



progressVBCode.txt

Progrss_Screenshot

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 56,686 Reputation points
    2023-01-18T19:26:13.4666667+00:00

    the browser does not receive a notification when the download completes., nor can a request return two responses. a common solution is for javascript to poll the server for completion. the download should have a unique id. the download needs to keep the download status for the request in a persistent store (static memory can be used if single server).

    note: the download handler can not use session, or it will block the polling call.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Aypn CNN 446 Reputation points
    2023-01-20T07:04:48.6766667+00:00

    Hi,

    Instead of above code, I used jQuery to simply solved and file is downloading, ref my below code attached.

    Js_FileDownLoad_Repeater.txt