XmlDocument doc = new XmlDocument();
  doc.LoadXml(XmlString);
  Response.ContentType = "text/plain"; // not 
  Response.AppendHeader("Content-Disposition", "attachment; filename=test.xml");
  doc.Save(Response.OutputStream);
  Response.End(); //must it
 
No comments:
Post a Comment