ASP.Net/Jquery find client event after Response.End()
<p>I have a button that is generating a PDF file on the server and then setting the response header information to the client for the file to be downloaded.</p>

<p>I would like to display a "Please Wait..." message during the postback because it could be time intensive. I'm able to display a div with no problem when the button is clicked but I'm not able to hide this div when the server returns the information.</p>

<p>Below is my server side code:</p>

<pre><code>Response.Buffer = true;
Response.Charset = "";
Response.AddHeader("content-disposition", "attachment; filename=" + Casefile.SerialCode + ".ppt");
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/octet-stream";
Response.BinaryWrite(binaryData);
Response.Flush();
Response.End();
</code></pre>

<p>I've tried the following Jquery to hide my Div but it never gets called...</p>

<pre><code>$(document).onLoad(function ()
{
   $('#divLoading').css("display", "none");
});
</code></pre>
