Click here to Skip to main content
15,936,903 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey all,
I want to connect to a microsoft sql server database with dataset object and then make it a XML file and send it to download.
How did I do that? (I know how to connect to a database with dataset object, what I would like to know is how I send the XML file that I created to download).
I don't need to save the XML file on the server, just send it to download.
I write in C #.

Thanks about your help and sorry about my English.
Updated 17-Jun-11 4:15am

If you have not seen this thread,please have a look.It may help you.[^]
Share this answer
Dear first read thread carefully. there is already mentioned :

Response.ContentType = "text/xml";

And response directly sending to the client side. It should be work.

Have you try that code?

Share this answer
I know how to create the XML file.
My question is how to send the XML file to download..
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900