Stream mhtml to browser

M

mparker

Can a mhtml page be streamed to the browser? I tried creating a web
page that generates a mhtml file. I'm using the following headers:
Response.ContentType = "message/rfc822";
Response.AddHeader("content-disposition", "inline;
filename=test.mht");
and am dynamically building the mhtml file. Unfortunately, this
causes a browser syntax error.

The best I've been able to do is get the page to open as an attachment
- Response.AddHeader("content-disposition", "attachment;
filename=test.mht") but I get the dreaded file open dialog.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top