[thelist] CSV file download on the fly with SQL/ASP generated pages - but how?

John C Bullas jcbullas at nildram.co.uk
Tue Dec 30 07:08:10 CST 2003


At 09:30 30/12/2003, you wrote
>I am trying to create a "download this page as a csv file" facility for 
>some of our internal reporting pages.  We are pulling the pages from SQL 
>with ASP making a table from the information.
>
>Ideally there would be a link on the page which would initiate a download.
>
>I tried erroneously to embed some asp in a csv file, but it would open the 
>CSV in an embedded spreadsheet in the browser.
>
>Does anyone have any ideas, or know how I can achieve this?

Useful or too easy?

<a href="target.pdf" OnClick="alert('Download by Right Click Save Target
As - Mac users Control Click and select download link');return false;"><img 
src="images/image.gif" alt="Download Page" width="18" height="20" 
border="0"></a>

seems to work.....

John

>
>TIA
>
>John Dobson
>--
>* * Please support the community that supports you.  * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester
>and archives of thelist go to: http://lists.evolt.org
>Workers of the Web, evolt !


     *************** John C Bullas **************

    weblog: http://freeroller.net/page/johnbullas/Weblog

**** Eudora Mail 6.0.1.1 / McAfee Virus Scan 4.5.1 ****


More information about the thelist mailing list