Response object error 'ASP 0156 : 80004005' <BR><BR>Header Error <BR><BR>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. <BR>
That will (probably) correct the error but poor steven still doesn't understand WHY. <BR><BR>steven, you are probably doing a Response.Redirect somewhere in your ASP, aren't you? If you output ANY html for the client, and then try to redirect them you'll get that error. By using the Response.Buffer directive you tell the web server to buffer all the output until ALL the page is built, that way if you bail out with a Response.Redirect the server has built the HTTP headers, but hasn't SENT any of them, so it can gracefully can them and send new headers for the new page that you've sent your users off to see.<BR><BR>Another solution would be to not do ANY response.write's or send ANY html until AFTER the part of the page where your code decides whether or not to Response.Redirect them somewhere.<BR><BR><BR>Happy programming.
Then I'd have to READ them so I could point them to the right one. I'm lazy and it's easier for me to answer them than to read FAQ's. <BR><BR><BR>Seriously though...<BR><BR>they really SHOULD read them. I agree totally.