Hello,
I try to send an xml from an aspx pages which generate an xml file.
And I tried with this method
FileStream fs = new
FileStream(WebSdxResponse.file_path,FileMode.Open, FileAccess.Read,FileSh
are.None);
byte[] b = ReadFully(fs,(int) fs.Length);Response.Clear();
Response.ContentType= “text/xml”;
Response.AppendHeader("content-disposition","attachement;filename=test.x
ml");
Response.OutputStream.Write(b,0,b.Length);
Response.End();
Response.Close();
Orig: xml format, I sure the xml format is well formatted.
In my Internet explorer, I have some extra characters (_ViewState, html
tags…). But when I change the ContentType(“blabla/bXml”) and change
filename to test.Dxml. It works well.
Could help me to send an xml page well formatted in internet explorer?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!