Response.ReDirect Unusual Error - HELP WANTED. 
Author Message
 Response.ReDirect Unusual Error - HELP WANTED.

Ok, im new to this language and i need to know things. Books are usless;
they tell you how to do things but not what errors could occur if you do
them. So what am i doing wrong here then:

Response.ReDirect("www.moo.com")

I get this error:

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

WTF!??

Could someone explain to me in english what this means and how i can make
the {*filter*}y ReDirect method work.

Thanks!



Sat, 17 Jul 2004 00:32:43 GMT  
 Response.ReDirect Unusual Error - HELP WANTED.
Put this on top of your script

Response.Buffer = true

which will hold the HTML to stay on the server until your ASP script
completes execution and then the server will write the HTML to the client.
This way the HTTP headers will also stay on the server until the contents is
sent to the client browser.

Regards,
George.


Quote:
> Ok, im new to this language and i need to know things. Books are usless;
> they tell you how to do things but not what errors could occur if you do
> them. So what am i doing wrong here then:

> Response.ReDirect("www.moo.com")

> I get this error:

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

> WTF!??

> Could someone explain to me in english what this means and how i can make
> the {*filter*}y ReDirect method work.

> Thanks!




Sat, 17 Jul 2004 05:10:31 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Response Redirect doesn't Work - No me funciona Response Redirect

2. Response.Redirect error

3. Response.Redirect Error

4. response.redirect & scripting object model error

5. Response.Redirect 500 Internal server error

6. response.redirect & scripting object model error

7. weird error...Response.Redirect fails

8. Response.Redirect Error

9. vbscript, asp, and response.redirect - urgent help plz

10. Help: Response.redirect but targeting _top

11. HELP!!! Response Redirect

12. Response.redirect (Help needed)

 

 
Powered by phpBB® Forum Software