Response object error 'ASP 0156 : 80004005

Results 1 to 2 of 2

Thread: Response object error 'ASP 0156 : 80004005

  1. #1
    Join Date
    Dec 1969

    Default Response object error 'ASP 0156 : 80004005

    Response object error &#039ASP 0156 : 80004005&#039 <BR><BR>Header Error <BR><BR>/online/file2.asp, line 15 <BR><BR>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. <BR><BR>The above error was encountered for the following Script<BR><BR>&#060;%if Request.Form("registered") = "yes" then<BR> Response.Rediret ""<BR>end if %&#062;<BR><BR>Any idea why I&#039m getting this error?<BR><BR>Thanks,<BR>

  2. #2 Guest

    Default RE: Response object error 'ASP 0156 : 80004005

    If you want to redirect to another page after you have already partly generated a page, you must include the sataement:<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;Response.Buffer=true<BR><BR>It should occur some where near the start of your script, e.g.:<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&#060;%@langu age=VbScript%&#062;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&#0 60;%response.Buffer=true%&#062;<BR><BR>If you do not do this the output of your script is returned to the server as it is produced. If buffer is true then nothing is returned until the script has been completed, so you can abort it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts