Classic ASP ProfessionalFor advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
If you execute the above example it will open a download window and download the file as word document.
However I want to download the file as HTML document. What should be the "Content Type" to download the file as HTML.
You cannot download it as HTML itself. You've got to set the ContentType as "text/html", but the contents will be displayed in the browser only. once it is displayed you can save it as html file that all possible. as far as i know