Last post Aug 20, 2012 10:09 AM by only_you
Aug 20, 2012 10:03 AM|only_you|LINK
I created xml file from DataSet.
StreamWriter xmlDoc = new StreamWriter(Server.MapPath("~/temp/test.xml"), false);
Apply the WriteXml method to write an XML document
I don't want to save file on server, I want to prompt user about download file. How to do this?
Aug 20, 2012 10:09 AM|only_you|LINK
This code works for me...
XmlDocument doc = new XmlDocument();//obviously this comes from ur code
using (StreamWriter writer = new StreamWriter(Response.OutputStream, new UTF8Encoding(false)))
Response.ContentType = "text/xml";