碰到Header Error,怎么办呢?

tigers 2000-04-28 04:25:00
错误信息如下:
Response object error 'ASP 0156 : 80004005'

Header Error

/eshutang/login/confirm_login.asp, line 18

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
...全文
1081 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
tigers 2000-04-28
  • 打赏
  • 举报
回复
多谢各位的帮助。
Dannel 2000-04-28
  • 打赏
  • 举报
回复
ASP页面中Response.Redirect ("login.asp")必须<html>之前,重新设计你的程序,

可加一页只是检查的ASP页,例:

IF 要求 THEN
Response.Redirect ("login.asp")
Else
Response.Redirect ("other")
End if

还有很多种办法,多思考吧!
tigers 2000-04-28
  • 打赏
  • 举报
回复
请问如何解决?
zdg 2000-04-28
  • 打赏
  • 举报
回复
那问题就在你在Response.Redirect ("login.asp")之前有输出了...
比如下面两种都是不行的:
1)
<html><body>....
<%
Response.Redirect ("login.asp")
%>
2)
<%
Response.Write "......"
....
Response.Redirect ("login.asp")
%>
tigers 2000-04-28
  • 打赏
  • 举报
回复
您说的对,有一句redirect语句
<% user=trim(request.form("username"))
pass=trim(request.form("password"))
if (user<>"" and pass<>"") then
Response.Redirect ("login.asp")
end if
%>
zdg 2000-04-28
  • 打赏
  • 举报
回复
是不是在写了HTML代码后又跳转(Redirect)???

请贴出你的代码...

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧