Last post Oct 04, 2012 04:36 PM by thsman
Oct 04, 2012 12:36 PM|thsman|LINK
I create an xml file from a dataset so the user can save an xml file of what they have seen in a gridview. The file is created with the correct content but also contains the HTML markup for the current page. How come and how do I get a plain xml file?
Here is the code
Response.ContentType = "text/plain"
Response.AppendHeader("Content-Disposition", "attachment; filename=bookings.xml")
ds is the dataset that was previously populated by SQL query
Oct 04, 2012 04:36 PM|thsman|LINK
It needed a response.end and a handler for the exception that throws.