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).
|
 |
 |
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 |
 |
 |
|