Stream mhtml to browser

Discussion in 'ASP .Net' started by mparker@costar.com, Dec 15, 2003.

  1. Guest

    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.
     
    , Dec 15, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TUVSNzg=?=

    MHTML Streaming

    =?Utf-8?B?TUVSNzg=?=, Feb 24, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    2,975
    jgoodale
    Feb 6, 2006
  2. Peter Rilling
    Replies:
    0
    Views:
    424
    Peter Rilling
    Feb 9, 2006
  3. Jason von Bartheld

    Emitting mhtml to browser with ASP.NET

    Jason von Bartheld, May 26, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    326
    Jason von Bartheld
    May 26, 2004
  4. k mcnamee
    Replies:
    0
    Views:
    215
    k mcnamee
    Oct 16, 2003
Loading...

Share This Page