Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: downloading word document


Message #1 by "sundar srinivasan" <ssrinivasan3@n...> on Fri, 14 Feb 2003 16:01:09
Hello,

I have a classic asp page that downloads a word document via a dll.
This worked perfectly in the Classic ASP environment.
Now, this page runs on a .Net server and I am getting a lot
of junk..What's wrong?

By the way, I am reading it as a binary file in the dll, and adding
the required headers:
   objSC.Response.AddHeader "content-disposition", "attachment;filename=" 
mydoc.doc"

where objSC is the ASP's instrinsic Response object reference

Then I am doing a objSC.Response.BinaryWrite of the binary stream.

Thanks in advance.

Sundar

  Return to Index