Chris Bradshaw 3/16/2011

Outputting CSV from an ASP page

Read Original

This article provides a practical code example in classic ASP (VBScript) for querying a SQL database and outputting the results as a downloadable CSV file. It explains how to set the correct HTTP headers for file attachment, write column headers, and iterate through a recordset to format data for Excel and other spreadsheet applications.

Outputting CSV from an ASP page

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week