HTML form hangs when no respond received

mark goldin 691 Reputation points

I have an HTML form where Its action is an ASP page. Under certain scenario I want to create a file in the ASP page and return it back. That works fine, but the form continues waiting for the respond. Is there a way t return something to the form while sending a file back?


A set of technologies in the .NET Framework for building web applications and XML web services.
3,185 questions
{count} votes

Accepted answer
  1. Bruce ( 52,826 Reputation points

    Not supported by the browser. While there is no way to detect if the download completed successfully on the client side, you can use JavaScript to poll the server to check if it was successfully sent. Use a request Id, then the JavaScript uses a timer and Ajax to check the status of the download. Be sure to not use session on the ajax call.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. mark goldin 691 Reputation points

    I need the files to be downloaded by the Browser. The form data is not important, all I want is to say that download is done.