title: File Download inside iframe
body: <p>I'm using following method to download a file.on a button click inside a <strong>iframe</strong>.it's working fine in every browser except IE.can some one plz suggest me a sollution</p>
  
  <pre><code>private void DownloadToBrowser(string filePath)
      {
          try
          {
              FileInfo file = new FileInfo(filePath);
              Context.Response.Clear();
  
              Context.Response.ClearHeaders();
  
              Context.Response.ClearContent();
  
              Context.Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
  
              Context.Response.AddHeader("Content-Length", file.Length.ToString());
  
              Context.Response.ContentType = "text/plain";
  
              Context.Response.Flush();
  
              Context.Response.TransmitFile(file.FullName);
  
              Context.Response.End();
          }
          catch (Exception ex)
          {
              throw ex;
          }
      }
  </code></pre>