Response.TransmitFile(filePath) fails in child page in IE
<p><br>
I try to load a small pdf file to client browser. I redirect to download_page.aspx that does the following:</p>

<pre><code>Response.ClearHeaders();  
Response.ContentType = "application/pdf";  
Response.Clear();  
Response.AppendHeader("Content-Disposition", "attachment");  
Response.TransmitFile(file);  
Response.Flush();
</code></pre>

<p><b>Problem:</b><br>
When I redirect to download_page.aspx from a link or from a <code>button.OnClientClick="javascript:window.open('download_page.aspx?index=20')"</code> 
it works. PDF opens in client browser.<br>
However, when I click on a button that does something on the page and then i use <code>ClientScript.RegisterStartupScript to redirect to download_page.aspx</code>, then download_page.aspx just blinks (flashes) and closes, no pdf loaded.<br>
This is IE7, IE8 problem. It works in Firefox.<br>
Any help appreciated.<br>
Thank you,<br>
Raman.</p>
