0
kicks
Forcing a Download Dialog to Display
If your browser is capable of rendering the content type (or has a plugin that does
so), it will render the binary content when you click on a link to the handler.
However , if you’d prefer to have a Download dialog appear instead, you need to set the
Content-Disposition header like so:
Response.AddHeader("Content-Disposition",
"attachment; filename=\"MyFile.doc\"");
This code will display a File Save dialog in which the filename is defaulted to MyFile.doc.
UA:F [1.6.3_896]