Response.Redirect problem 
Author Message
 Response.Redirect problem

I try to use response.redirect to get to an error page, but I get always

the error message:

Response object error 'ASP 0156 : 80004005'

Header Error

/koe10b.asp, line 4

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

Does anybody know why?

Pauli



Mon, 12 Nov 2001 03:00:00 GMT  
 Response.Redirect problem
Hi, Pauli!

Put this code at the start of the ASP page:

<%Response.Buffer = True %>
<HTML>
<HEAD>
.............

Best Regards


Quote:
>I try to use response.redirect to get to an error page, but I get always

>the error message:

>Response object error 'ASP 0156 : 80004005'

>Header Error

>/koe10b.asp, line 4

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

>Does anybody know why?

>Pauli



Mon, 12 Nov 2001 03:00:00 GMT  
 Response.Redirect problem
You either
1)set the buffer to true <%Response.buffer=True%> or
2)put the redirect statment befor the <HTML>  Tag.

Best Luck
Rania



Quote:
> Hi, Pauli!

> Put this code at the start of the ASP page:

> <%Response.Buffer = True %>
> <HTML>
> <HEAD>
> .............

> Best Regards


> >I try to use response.redirect to get to an error page, but I get
always

> >the error message:

> >Response object error 'ASP 0156 : 80004005'

> >Header Error

> >/koe10b.asp, line 4

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

> >Does anybody know why?

> >Pauli

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


Mon, 19 Nov 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Response Redirect problem

2. Response.Redirect problem...

3. Response.Redirect problem

4. Response.redirect problem

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

6. problem with response.redirect

7. Response.Redirect + Netscape Browser + StyleSheets = Problem!

8. problem with response.redirect

9. Style Sheet problem with response.redirect

10. Response.Redirect + Netscape Browser + StyleSheets = Problem!

11. problem with response.redirect and forms

12. Problem Launching RealPlayer After Response.Redirect

 

 
Powered by phpBB® Forum Software