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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.Redirect & HTTP Headers

Status
Not open for further replies.

JennyP

Programmer
Jul 25, 2000
9
AT
Hi there

I have an .asp page which only has some VBScript in it. It gets called by another page and then redirects at the end to another page - I get the following error (actually I get it quite often when using the Response object)
Would someone be able to explain (or point me towards a resource that does!) what it actually means and how to avoid it??

Response object error 'ASP 0156 : 80004005'

Header Error

nameOfFile.asp, line 3

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

Thanks!
Jenny :) [sig][/sig]
 
Jenny,

Put this at the top of your ASP page. It will allow the page to load

<%response.buffer=True%> [sig][/sig]
 
alternately, you can set the configuration of the web site to always buffer pages. [sig]<p>nick bulka<br><a href=mailto: > </a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top