Ciao a tutti,
Il problema è questo:
Dovrei salvare una pagina aspx che contiene xml come file xml. Ho visto che mozilla lo permette, ma IE 7 no.
Il codice che uso per visualizzare l'xml è in c# ed è il seguente :
Response.ContentType = "text/xml";
string xml = viewXmlRicevuta(Convert.ToInt32(Request["id"]));
ASCIIEncoding asc = new ASCIIEncoding();
byte[] firstString = asc.GetBytes(xml);
MemoryStream st = new MemoryStream(firstString.Length);
st.Write(firstString, 0, firstString.Length);
st.Seek(0, SeekOrigin.Begin);
st.Close();
Response.OutputStream.Write(st.GetBuffer(), 0, st.GetBuffer().Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
Quando faccio salva con come in IE 7 mi salva la pagina in aspx nonostante il content type qualcuno sa come risolvere il problema ?
Grazie

Rispondi quotando