I have an iFrame placed in an otherwise working HTML page.
The iFrame
receives its contents from a page with the code* shown
below. The page
works fine in Firefox 1.5 and 2.0. However, in Internet
Explorer 6.x,
the iFrame displays an error on the underlying page:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct
the error
and then click the Refresh button, or try again later.
If I view the underlying page in Internet Explorer 6.0, it
works
fine.
The iFrame page contains no reference to
"<XML>" or any other hint
that it might be an XML page. The code sends a content type
of "text/
plain". There is no DOCTYPE or other indication of HTML
on the
underlying page. I have specifically tried to make sure that
the only
thing that comes through is plain text.
The parent page has this docType:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML
4.01//EN" "http://www.w3.org/
TR/html4/DTD/strict.dtd">
Thanks for any help or pointers you might have.
--Brent
======================================
*This is the relevant part of the code
string strURL = "http://some_domain.com/
some_plain_text_doc.txt";
Response.ClearContent();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "text/plain";
oRequest =
(HttpWebRequest)WebRequest.Create(strURL);
oRequest.Timeout = 10000;
oResponse =
(HttpWebResponse)oRequest.GetResponse();
myStream = oResponse.GetResponseStream();
string thisRow = "";
while ((thisRow = sr.ReadLine()) != null)
{
Response.Write(thisRow +
"n"); Response.Flush();
}
sr.Close();
myStream.Close();
oResponse.Close();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---
|