To make the browser treat it as a download is a combination of the mime type set for the file extension on the web server and what the end users browser is set to do with that mime type. You may find that by default .csv is set to text/plain so you may want to configure your web server to something different.
Rgds Symeon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles Barouch Sent: 08 November 2007 17:14 To: u2-users@listserver.u2ug.org Subject: [U2] Pushing csv All, I am building CSV data and HTML data out of a database and pushing the results back to the browser which made the request. I have no problem building the data or pushing the HTML. The CSV data, however is tricky because it is in memory, not a file, and I need to know how to send it to the browser *in a way that the browser will treat it as a download*. I'm pretty sure there is some HTML I can slot into the <HEAD></HEAD> to do this task, but I can't find a good example. All help appreciated. - Chuck ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/