Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_ecommerce thread: Redirect statement


Message #1 by Larisa Desyatnikov <larisad@e...> on Mon, 22 Apr 2002 15:56:54 -0700
This is a multi-part message in MIME format.

------=_NextPart_000_0048_01C1EA16.52A7E700
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I met a strange problem of the response.redirect statement wheh i was 
coding simple asp file.
Here is the fragment of my code:

<html>

<head>

<title>New Page 2</title>

</head>

<body>

<% Response.Redirect "TEST.asp" %>

</body>

</html>



When I browsed the page through IIS i got the following message:



Response object error 'ASP 0156 : 80004005'

Header Error

/Lara/html/test_redirect.asp, line 10

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


Sorry, but I can not understand what is wrong. I appreciate if somebody 
can help me.

Thank you in advance,

lara


Message #2 by "Jeff Scott" <jeff@j...> on Mon, 22 Apr 2002 16:29:15 -0700
This is a multi-part message in MIME format.

------=_NextPart_000_0022_01C1EA1A.D80C0440
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

just take the html tags out. you don't even need them here.

response.redirect cannot be embedded within html code.
  -----Original Message-----
  From: Larisa Desyatnikov [mailto:larisad@e...]
  Sent: Monday, April 22, 2002 3:57 PM
  To: ASP ECommerce
  Subject: [asp_ecommerce] Redirect statement


  I met a strange problem of the response.redirect statement wheh i was
coding simple asp file.
  Here is the fragment of my code:

  <html>

  <head>

  <title>New Page 2</title>

  </head>

  <body>

  <% Response.Redirect "TEST.asp" %>

  </body>

  </html>



  When I browsed the page through IIS i got the following message:



  Response object error 'ASP 0156 : 80004005'

  Header Error

  /Lara/html/test_redirect.asp, line 10

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


  Sorry, but I can not understand what is wrong. I appreciate if somebody
can help me.

  Thank you in advance,

  lara


Message #3 by "Aaron Fleming" <aaron@f...> on Mon, 22 Apr 2002 19:39:45 -0400
Yes, it can.
Try this:

<%@ Language=3DVBScript %>
<html>
<head>
<title>
</title>
</head>
<body>

<%
response.Redirect "test.asp"
%>

</body>
</html>

Cheers,
Aaron Fleming



-----Original Message-----
From: Jeff Scott [mailto:jeff@j...]
Sent: April 22, 2002 7:29 PM
To: ASP ECommerce
Subject: [asp_ecommerce] RE: Redirect statement

just take the html tags out. you don't even need them here.
=A0
response.redirect cannot be embedded within html code.
-----Original Message-----
From: Larisa Desyatnikov [mailto:larisad@e...]
Sent: Monday, April 22, 2002 3:57 PM
To: ASP ECommerce
Subject: [asp_ecommerce] Redirect statement
I met a strange problem of the response.redirect statement wheh i was
coding simple asp file.
Here is the fragment of my code:
=A0
<html>
<head>
<title>New Page 2</title>
</head>
<body>
<% Response.Redirect "TEST.asp" %>
</body>
</html>
=A0
When I browsed the page through IIS i got the following message:
=A0
Response object error 'ASP 0156 : 80004005'
Header Error
/Lara/html/test_redirect.asp, line 10
The HTTP headers are already written to the client browser. Any HTTP
header modifications must be made before writing page content.
=A0
Sorry, but I can not understand what is wrong. I appreciate if somebody
can help me.
=A0
Thank you in advance,
=A0
lara


Message #4 by "Larisa Desyatnikov" <larisad@e...> on Mon, 22 Apr 2002 22:54:55 -0700
Dear Aaron Fleming

Thanks a lot.

This is a correct solusion.

Thank you again.

Lara.



----- Original Message -----
From: "Aaron Fleming" <aaron@f...>
To: "ASP ECommerce" <asp_ecommerce@p...>
Sent: Monday, April 22, 2002 4:39 PM
Subject: [asp_ecommerce] RE: Redirect statement


Yes, it can.
Try this:

<%@ Language=VBScript %>
<html>
<head>
<title>
</title>
</head>
<body>

<%
response.Redirect "test.asp"
%>

</body>
</html>

Cheers,
Aaron Fleming



-----Original Message-----
From: Jeff Scott [mailto:jeff@j...]
Sent: April 22, 2002 7:29 PM
To: ASP ECommerce
Subject: [asp_ecommerce] RE: Redirect statement

just take the html tags out. you don't even need them here.

response.redirect cannot be embedded within html code.
-----Original Message-----
From: Larisa Desyatnikov [mailto:larisad@e...]
Sent: Monday, April 22, 2002 3:57 PM
To: ASP ECommerce
Subject: [asp_ecommerce] Redirect statement
I met a strange problem of the response.redirect statement wheh i was
coding simple asp file.
Here is the fragment of my code:

<html>
<head>
<title>New Page 2</title>
</head>
<body>
<% Response.Redirect "TEST.asp" %>
</body>
</html>

When I browsed the page through IIS i got the following message:

Response object error 'ASP 0156 : 80004005'
Header Error
/Lara/html/test_redirect.asp, line 10
The HTTP headers are already written to the client browser. Any HTTP
header modifications must be made before writing page content.

Sorry, but I can not understand what is wrong. I appreciate if somebody
can help me.

Thank you in advance,

lara




Message #5 by "Jeff Scott" <jeff@j...> on Mon, 22 Apr 2002 23:04:47 -0700
here's another solution that works. Just in case anyone is curious.

<%
response.buffer = true
%>
<html>
<head>
<title>
</title>
</head>
<body>

<%
response.Redirect "test.asp"
%>

</body>
</html>

-----Original Message-----
From: Larisa Desyatnikov [mailto:larisad@e...]
Sent: Monday, April 22, 2002 10:55 PM
To: ASP ECommerce
Subject: [asp_ecommerce] RE: Redirect statement


Dear Aaron Fleming

Thanks a lot.

This is a correct solusion.

Thank you again.

Lara.



----- Original Message -----
From: "Aaron Fleming" <aaron@f...>
To: "ASP ECommerce" <asp_ecommerce@p...>
Sent: Monday, April 22, 2002 4:39 PM
Subject: [asp_ecommerce] RE: Redirect statement


Yes, it can.
Try this:

<%@ Language=VBScript %>
<html>
<head>
<title>
</title>
</head>
<body>

<%
response.Redirect "test.asp"
%>

</body>
</html>

Cheers,
Aaron Fleming



-----Original Message-----
From: Jeff Scott [mailto:jeff@j...]
Sent: April 22, 2002 7:29 PM
To: ASP ECommerce
Subject: [asp_ecommerce] RE: Redirect statement

just take the html tags out. you don't even need them here.

response.redirect cannot be embedded within html code.
-----Original Message-----
From: Larisa Desyatnikov [mailto:larisad@e...]
Sent: Monday, April 22, 2002 3:57 PM
To: ASP ECommerce
Subject: [asp_ecommerce] Redirect statement
I met a strange problem of the response.redirect statement wheh i was
coding simple asp file.
Here is the fragment of my code:

<html>
<head>
<title>New Page 2</title>
</head>
<body>
<% Response.Redirect "TEST.asp" %>
</body>
</html>

When I browsed the page through IIS i got the following message:

Response object error 'ASP 0156 : 80004005'
Header Error
/Lara/html/test_redirect.asp, line 10
The HTTP headers are already written to the client browser. Any HTTP
header modifications must be made before writing page content.

Sorry, but I can not understand what is wrong. I appreciate if somebody
can help me.

Thank you in advance,

lara






Message #6 by Abdul Sami <abdul_sami_20@y...> on Tue, 23 Apr 2002 01:54:08 -0700 (PDT)
Write <%response.buffer=false%> 
before the html tag, no need to write @language option.

--- Aaron Fleming <aaron@f...> wrote:
> Yes, it can.
> Try this:
> 
> <%@ Language=VBScript %>
> <html>
> <head>
> <title>
> </title>
> </head>
> <body>
> 
> <%
> response.Redirect "test.asp"
> %>
> 
> </body>
> </html>
> 
> Cheers,
> Aaron Fleming
> 
> 
> 
> -----Original Message-----
> From: Jeff Scott [mailto:jeff@j...] 
> Sent: April 22, 2002 7:29 PM
> To: ASP ECommerce
> Subject: [asp_ecommerce] RE: Redirect statement
> 
> just take the html tags out. you don't even need them here.
>  
> response.redirect cannot be embedded within html code.
> -----Original Message-----
> From: Larisa Desyatnikov [mailto:larisad@e...]
> Sent: Monday, April 22, 2002 3:57 PM
> To: ASP ECommerce
> Subject: [asp_ecommerce] Redirect statement
> I met a strange problem of the response.redirect statement wheh i was
> coding simple asp file. 
> Here is the fragment of my code:
>  
> <html>
> <head>
> <title>New Page 2</title>
> </head>
> <body>
> <% Response.Redirect "TEST.asp" %>
> </body>
> </html>
>  
> When I browsed the page through IIS i got the following message:
>  
> Response object error 'ASP 0156 : 80004005' 
> Header Error 
> /Lara/html/test_redirect.asp, line 10 
> The HTTP headers are already written to the client browser. Any HTTP
> header modifications must be made before writing page content. 
>  
> Sorry, but I can not understand what is wrong. I appreciate if somebody
> can help me.
>  
> Thank you in advance,
>  
> lara
> --- 
> --- 
> 
> 
> 


=====
Abdul Sami

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

  Return to Index