S
sam martin
why doesn't IE6 show the response from this page as XML? is the contenttype
wrong?
Basically, i've got an "empty" aspx page (barring the precompiler line <%@
Page language="c#" Codebehind="newssvc.aspx.cs" AutoEventWireup="false"
Inherits="gorlandnet.news.newssvc" %>)
then this in the Page_Load method:
Response.ContentType="text/xml";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.Write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
Response.Write("<xmldata>");
Response.Write("<newsitem>");
Response.Write("<title>News item</title>");
Response.Write("</newsitem>");
Response.Write("</xmldata>");
Response.End();
what am i doing wrong?
tia
sam martin
wrong?
Basically, i've got an "empty" aspx page (barring the precompiler line <%@
Page language="c#" Codebehind="newssvc.aspx.cs" AutoEventWireup="false"
Inherits="gorlandnet.news.newssvc" %>)
then this in the Page_Load method:
Response.ContentType="text/xml";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.Write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
Response.Write("<xmldata>");
Response.Write("<newsitem>");
Response.Write("<title>News item</title>");
Response.Write("</newsitem>");
Response.Write("</xmldata>");
Response.End();
what am i doing wrong?
tia
sam martin