response.contenttype xml c#

 

 

 

 

For example, the MIME value "application/xml" is used for XML documents and specifies that the " xml" subtype belongs in the "application" type.Setting the Content-type in ASP: < response.ContentType"text/html" >. Response.ContentType "application/ms-word". When I run this, word opens, but its empty. Does anyone know how to do this?My C code reads the XML file and displays it in my aspx web form. generate xml file on the fly and download it to the requested browser. public void ExportXML(string BookId) .Response.AppendHeader("Content-Length", byteArray.Length.ToString()) Response.ContentType "application/octet-stream" < Page Language"C" > < Import Namespace"System.Xml" >