How do I force an XML document to be downloaded from a web browser to a
client?
The XML document will come ideally from a dataset but if this is not
possible then I can save off the XML document to the server and read it back
in to send to the clients browser. I have somethink like this but am
struggling to send the XML...
With HttpContext.Current.Response
.ClearContent()
.ClearHeaders()
.ContentType = "text/xml"
.AddHeader("Content-Disposition", "attachment; filename=rippo.xml")
.Write(SOMEXMLFILE OR A DATASET)
.End()
End With
Can any one help?
Thanks
Rippo