Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display retrieved SQL data from Dataset

Status
Not open for further replies.

bont

Programmer
Sep 7, 2000
200
US
Hi all. I retrieved a table from my SQL Server, and have used a dataadapter to fill a dataset. I then can use the GetXml method to save the schema of the dataset as a string. I would like to output this to the screen as an actual XML document (not embedded into any type of html document). How do I do this?
 
You'll have to set the Response.ContentType to "text/xml" and then write the relevant XML out to the page.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top