Nov 3rd, 2000, 01:48 PM
okay. i have this code and it's giving me this error, and the line that's causing this error is where i type
response.redirect "redir.asp"
the error message is:
Response object error 'ASP 0156 : 80004005'
Header Error
/redirect.asp, line 12
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page
content.
and this is the source code:
<%@ Language=VBScript%>
<!--#include file="ADOvbs.inc"-->
<html>
<head>
<title>trying redirect</title>
</head>
<body>
<%
Dim varConfirm
varConfirm = Request.Form("rConfirm") 'no problem here
If varConfirm="no" Then
Response.redirect "redir.asp"
else
' code if varConfirm="yes"
end if
%>
</body>
</html>
response.redirect "redir.asp"
the error message is:
Response object error 'ASP 0156 : 80004005'
Header Error
/redirect.asp, line 12
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page
content.
and this is the source code:
<%@ Language=VBScript%>
<!--#include file="ADOvbs.inc"-->
<html>
<head>
<title>trying redirect</title>
</head>
<body>
<%
Dim varConfirm
varConfirm = Request.Form("rConfirm") 'no problem here
If varConfirm="no" Then
Response.redirect "redir.asp"
else
' code if varConfirm="yes"
end if
%>
</body>
</html>