title: Redirecting to a "Thank you" page and offering the save dialog of downloaded file immediately
body: <p>I am using ASP.NET2.0. I have created a download form with some input fields and a download button. When the download button is clicked, I want to redirect the user to a "Thank you for downloading..." page and immediately offer him/her the file to save.</p>
  
  <p>I have this following code to show the savefile dialog:</p>
  
  <pre><code>public partial class ThankYouPage : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          Response.Clear();
          Response.AddHeader("Content-Disposition", 
                            "attachment; filename=\"downloadedFile.zip\"");
          Response.ContentType = "application/x-zip-compressed";
          Response.BinaryWrite(this.downloadedFileByteArray);
          Response.Flush();
          Response.End();
      }
  }
  </code></pre>
  
  <p>Obviously, this code does not allow to display any "Thank you" message. Is there an "AfterRender" event or something similar of the Page where, I could move this download code and give a chance for the page to render the "thank you" message to the user? After all, I am truely thankful to them, so I do want to express that.</p>