How to export ASP.NET dataset to text file

G

Guest

Hi

On an asp.net page I have a search section that, based on the search
criteria, populates a datagrid. The search is done trought a stored procedure
and a resulting dataset with only one tabel in it. The dataset
(dsRecords.Tables("tblSearchResult") is the datasource for the datagrid.

My question is:
Is it possible to export data from a this dataset to a text file (*.txt),
with an standard delimeter (; or tab) to a user-defined destination (a save
dialogbox!). If it is possible - how ?

Thanks
Peter D.C.
 
E

Eliyahu Goldin

The easiest solution is to prepare the file on server side and than download
it to the client with standard file download dialog. If you wish to do
everything on client side, you would need an ActiveX control for that.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top