Header Error. Please help me (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


AirRazr -> Header Error. Please help me (2/27/2001 20:24:00)

I have my handy dandy "ecommerce site". It works great on my local machine across our intranet. I have published it to a test machine, set the DSN and all that. When I try to access any of the pages after the login, this is the error I get.

Response object error 'ASP 0156 : 80004005'

Header Error

/2ndharvest/members/validate.asp, line 32

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

Line 32 of my code reads as follows:

Response.redirect "http://scsi-imail/2ndharvest/members/start.asp?Cus_No=" & Cusnumber & ""


Why am I getting this error??? Any Ideas?

------------------
Wes
Will this be on the test?
SCSI Business Solutions





Spooky -> RE: Header Error. Please help me (2/27/2001 20:46:00)

At the top of your asp page add :

<%Response.buffer = True%>

This way the entire page is processed first rather than pieces of it.
You cant response.redirect after the headers in html are written otherwise.

------------------
Spooky
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!





AirRazr -> RE: Header Error. Please help me (2/27/2001 20:30:00)

Spooky,

Once Again you are the best!!!!

Thank you for everything

------------------
Wes
Will this be on the test?
SCSI Business Solutions





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875