-
HTTP headers
I don't understand this error:
Response object error 'ASP 0156 : 80004005'
Header Error
/yadayada/Default.asp, line 8
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
And the code of the asp is:
<HTML>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
<% Response.Redirect "top.htm" %>
</BODY>
</HTML>
What's wrong? It worked on my home personal server (NT5) but doesn't work in school's server (NT4).
-
The problem is with your response.Redirect. At the very top of your page add the following:
Code:
<%Response.Buffer=TRUE%>
<HTML>
<BODY>...
Response.Buffer should take care of the problem...
-
If that is all the code that the ASP page has, don't even bother with the HTML tags... just put the redirect at the top of the page.