Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.buffer = true ?

Status
Not open for further replies.

stevedi

Programmer
Aug 23, 2002
23
US
Hi,

I have an asp page that I would like to process some script then be redirected to another page. I'm using response.buffer = true to withhold the page during process then issue the redirect. I get this error:

Response object error 'ASP 0156 : 80004005'
Header Error
temp1.asp, line 10
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

here's my code: the other scripting has been ommitted, but this simiplefied code doesn't work either. I'm using IIS5.0

<%@LANGUAGE = "VBScript"%>
<%Response.buffer=true%>
<html>
<body>
<%
Response.Flush
%>
<%
Response.Redirect"Home.asp"
%>
</body>
</html>

any ideas would be appreciated.

Steve
 
Response.Flush is causing <html><body> to be sent to the browser.
 
Maybe you had Response.Flush confused with Response.Clear ?
 
Thanks folks,

I took the redirect.flush out and it worked. DNG your link helped my understand.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top