CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 .csv export from datagrid

Print topic Send  topic

Author Message
mrjordan

Posts: 2
Posted: 07/24/2007, 12:44 AM

help....

is there code that you can share on how to create a .csv export (and export button) from a datagrid(form) from an asp page?

We use CCS extensively, but now have an URGENT need to have datagrid results export option to .csv file:

1)this would popup a new download window for the file to the user
2)user now has a .csv of the datagrid (minus the column headings)

We could live with a .csv with the headings, but having the option to exclude them in the code would be optimal.

I am also trying with Visual Web Developer, but I am not an asp programmer (which is why we use CCS).
View profile  Send private message
wdhindman

Posts: 6
Posted: 07/29/2007, 6:54 PM

...try this in the after initialize event on the page with your grid on it.

Response.Buffer = True
Response.ContentType = "application/vnd.text/plain"
response.addHeader "Content-Disposition","inline; filename=text.txt"

...this is off the top but it should get you on the right path

...hth

_________________
William Hindman
Dejpol Systems
Loxahatchee, FL
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.