How to Export sql data to text file in web page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi.

have someone can give me some idea how to start.
the thing i want do is using web page export the sql data to text file then
let user download.
eg. the webpage has one button. when user click that button.
the webpage will go to database generate data and then export to text file.
and user will download that text file.

Thank You
 
Hi.

have someone can give me some idea how to start.
the thing i want do is using web page export the sql data to text file then
let user download.
eg. the webpage has one button. when user click that button.
the webpage will go to database generate data and then export to text file.
and user will download that text file.

Thank You

You can use Using an SqlDataAdapter to read the sql data to a DataSet, you can then use DataSet.WriteXml to produce a text file of the data.
 

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

Back
Top