title: Post Back does not work after writing files to response in ASP.NET
body: <p><strong>What I have?</strong></p>
  
  <p>I have an ASP.NET page which allows the user to download file <code>a</code> on a button click. User can select the file he wants from a list of available files (RadioButtonList) and clicks on download button to download it. (I should not provide link for each file that can be downloaded - this is the requirement).</p>
  
  <p><strong>What do I want?</strong></p>
  
  <p>I want the user to download multiple files one by one by selecting the required radio button and clicking on the button.</p>
  
  <p><strong>What problem am I facing?</strong></p>
  
  <p>I can download the file for the first time properly. But, after downloading, if I select some other file and click on the button to download it, click event of the button does not post back and the second file will not be downloaded.</p>
  
  <p>I use the following code on the button click event:</p>
  
  <pre><code>protected void btnDownload_Click(object sender, EventArgs e)
  {
      string viewXml = exporter.Export();
      Response.Clear();
      Response.AddHeader("Content-Disposition", "attachment; filename=views.cov");
      Response.AddHeader("Content-Length", viewXml.Length.ToString());
      Response.ContentType = "text/plain";
      Response.Write(viewXml);
      Response.End();
  }
  </code></pre>
  
  <p>Am I doing something wrong here?</p>
  
  <p>Same problem can be replicated in IE6, IE7 and Chrome. I think this problem is browser independent.</p>