Response.redirect error
Hi All
I am getting this error when I redirect my page using response.redirect().
Don't really know why this error occurs. Can anyone help me out in this?
Response object error 'ASP 0156 : 80004005'
Header Error
/pl83/login.asp, line 103
The HTTP headers are already written to the client browser. Any HTTP header
modifications must be made before writing page content.
rgds,
Saiful
[463 byte] By [
Saiful] at [2007-11-9 15:36:20]

# 1 Re: Response.redirect error
See the following article -
http://support.microsoft.com/support/kb/articles/Q229/6/57.ASP
Andrew
# 2 Re: Response.redirect error
Don't forget to set the Response.Buffer = true
"Saiful" <md-saifulamri_omar@hp.com> wrote:
>
>Hi All
>
>I am getting this error when I redirect my page using response.redirect().
>Don't really know why this error occurs. Can anyone help me out in this?
>
>Response object error 'ASP 0156 : 80004005'
>
>Header Error
>
>/pl83/login.asp, line 103
>
>The HTTP headers are already written to the client browser. Any HTTP header
>modifications must be made before writing page content.
>
>
>rgds,
>Saiful
MCSDon at 2007-11-11 23:42:03 >

# 3 Re: Response.redirect error
"Saiful" <md-saifulamri_omar@hp.com> wrote:
>
>Hi All
>
>I am getting this error when I redirect my page using response.redirect().
>Don't really know why this error occurs. Can anyone help me out in this?
>
>Response object error 'ASP 0156 : 80004005'
>
>Header Error
>
>/pl83/login.asp, line 103
>
>The HTTP headers are already written to the client browser. Any HTTP header
>modifications must be made before writing page content.
>
>
>rgds,
>Saiful
Dear
just give response.buffer=true that's it ur problem is solved
vijay sagar
saiful at 2007-11-11 23:43:07 >

# 4 Re: Response.redirect error
Hai,
code the below line at the top of ur page but after language director.
response.buffer=true.
Actually response.redirect will inform the browser to reload another page.This
request comes to browser as a HTTP header , this should be informed before
writing page content.
Bye
Kannan M
"Saiful" <md-saifulamri_omar@hp.com> wrote:
>
>Hi All
>
>I am getting this error when I redirect my page using response.redirect().
>Don't really know why this error occurs. Can anyone help me out in this?
>
>Response object error 'ASP 0156 : 80004005'
>
>Header Error
>
>/pl83/login.asp, line 103
>
>The HTTP headers are already written to the client browser. Any HTTP header
>modifications must be made before writing page content.
>
>
>rgds,
>Saiful
# 5 Re: Response.redirect error
"saiful" <md-saifulamri_omar@hp.com> wrote:
>
>"Saiful" <md-saifulamri_omar@hp.com> wrote:
>>
>>Hi All
>>
>>I am getting this error when I redirect my page using response.redirect().
>>Don't really know why this error occurs. Can anyone help me out in this?
>>
>>Response object error 'ASP 0156 : 80004005'
>>
>>Header Error
>>
>>/pl83/login.asp, line 103
>>
>>The HTTP headers are already written to the client browser. Any HTTP header
>>modifications must be made before writing page content.
>>
>>
>>rgds,
>>Saiful
>
>Dear
> just give response.buffer=true that's it ur problem is solved
>
> vijay sagar
>
The way I handle this is by putting my redirect tests at the top of the code
(before the <HTML> tag. I do all of my checks there (is the user logged
in... have they arrived from the appropriate page... etc.). If the redirect
occurs after the beginning of the <HEAD> tag, the server has already begun
to generate output for the page requester.