How generate the data from a GridView to a text file?

C

Carlos

Hello all
I have infromation that change every time, I created a button to export this
data to a text file.
It's possible? There is a command or a script or another solution?

Thanks in advanced.
C.
 
C

Carlos

Thanks a lot
C.

Ken Cox said:
Hi Carlos,

Wouldn't you want to export the underlying dataset rather than the
GridView?

DataSet.WriteXml Method
Writes XML data, and optionally the schema, from the DataSet.

http://msdn2.microsoft.com/en-us/library/system.data.dataset.writexml.aspx

Ken
Microsoft MVP [ASP.NET]

Carlos said:
Hello all
I have infromation that change every time, I created a button to export
this data to a text file.
It's possible? There is a command or a script or another solution?

Thanks in advanced.
C.
 

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

Members online

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top