471,337 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Content-Dispostion Attachment Problem

In an aspx page on a button click event(post back) i have the following code.
byte[] baResult = ProcessReport()
Response.ContentType = "text/html";
Response.AddHeader( "Content-Disposition", "attachment;filename=report.html");
Response.AddHeader("Content-Length", baResult.Length.ToString());
The client is displayed with download dialog box and when the user clicks
the open window the page is opened in the same IE window and it is not
opening in a different IE windows. Is there a was to force it to open in a
new IE Window.
When it is not a html content and if it is text, external application is
opened. Why a second IE is not opened when the attachment is of type html.
Jul 21 '05 #1
0 910

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by jonathan.beckett | last post: by
1 post views Thread by Richard | last post: by
10 posts views Thread by clintonG | last post: by
1 post views Thread by athirumurthi | last post: by
7 posts views Thread by Water Cooler v2 | last post: by
1 post views Thread by dave8421 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.