ASP程式报错,打开ADMIN后台管理的时候,进不去!为什么?

netice_cn 2003-07-31 09:25:21
ASP程式报错!
打开ADMIN后台管理的时候,进不去!为什么?

http://www.qddhawy.com/rushsky/test/temp/admin

请高手帮忙!

用户名:admin
密码:admin


“HTTP标题已经写入到客户浏览器”的解决
问:有时候要测试下载的ASP程序时,会出现:“HTTP 标题已经写入到客户浏览器。任何 HTTP 标题的修改必须在写入页内容之前”的错误提示。这个问题如何解决?
  答:这是response.redirect 导致错误。解决的方法很简单:
  在出现错误的文件开始写一句: <% Response.Buffer = True %>
  在这个文件的结尾写一句:<@ Response.Flush %>

  当然,你也可以不单独写一行,而将:Response.Buffer = True  Response.Flush 分别插在文件开头和结尾的<%  %>标记内。


注注注注:这个方法也不能解决问题!

ASP原程式下载:
http://www.qddhawy.com/rushsky/bg.rar
...全文
270 22 打赏 收藏 转发到动态 举报
写回复
用AI写文章
22 条回复
切换为时间正序
请发表友善的回复…
发表回复
myadaidarling 2003-08-01
  • 打赏
  • 举报
回复
我把你给的这几个文件的代码考出来了,新建了两个文件,执行了一下,没错误。
但是不是你最上面给的那个链接的登录页面。

请检查你的路径和执行的文件是否一致,为什么贴出的代码没有登录段的代码?


另,如果你没有给错的话,是不是你包含的文件有问题?
myadaidarling 2003-08-01
  • 打赏
  • 举报
回复
你从index.asp开始检查,包括他的包含文件。

如果你愿意的话,请把你的这几个登录文件和包含文件发给我,我帮你调试一下看看...

email: fanchen@yuntai.net
myadaidarling 2003-07-31
  • 打赏
  • 举报
回复
这个我看过了。。

我要你的index.asp和admin_conn.asp还有mdb这三个...
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
ASP原程式下载:
http://www.qddhawy.com/rushsky/bg.rar
myadaidarling 2003-07-31
  • 打赏
  • 举报
回复
我觉得没什么错误了!

我觉得头错误是不是html语言的错误?

你可以把程序
admin_conn.asp index.asp 及mdb发给我或者给个连接,我中午看看... 好不??
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
还是同样的提示错误
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
我试试
myadaidarling 2003-07-31
  • 打赏
  • 举报
回复
改成
if request.QueryString("action")="login" then
试试呢?

netice_cn 2003-07-31
  • 打赏
  • 举报
回复
index 所有程式如下:


<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>


<html>
<head>
<title>管理后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#9CBAEF">
<p> </p>
<p> </p>
<p> </p>
<table width="405" height="6" border="0" align="center" cellspacing="1">
<tr>
<td width="100%" height="57" bgcolor="#9DB8E8"> <form method="POST" action="index.asp?action=login">
<table width="71%" border="1" bordercolordark=#9CC7EF bordercolorlight=#145AA0 cellspacing="0" cellpadding="3" align="center">
<tr>
<td colspan="2" height="28" bgcolor="#73B2EF"> <div align="center"><font color="#FFFFFF">管理员登陆系统</font></div></td>
</tr>
<tr>
<td width="34%"> <div align="right"><font size="2">管理员帐号</font></div></td>
<td width="66%"> <input type="text" name="uid" size="20"> </td>
</tr>
<tr>
<td width="34%"> <div align="right"><font size="2">管理员密码</font></div></td>
<td width="66%"> <input name="pwd" type="password" id="pwd" value="" size="20">
</td>
</tr>
<tr>
<td colspan="2" height="28" bgcolor="#73B2EF"> <div align="center">
<input type="submit" name="Submit" value="登陆">
</div></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
<%
if request("action")="login" then
uid=request("uid")
pwd=request("pwd")
%>
<!--#include file="admin_conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from admin where uid='"&uid&"' and pwd='"&pwd&"'"
rs.open sql,conn,3,3
if rs.eof then
response.write "<center>用户名和密码不匹配"
else
session("uid")=rs("uid")
response.redirect "admin_index.asp"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
%>
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
skyword(网络新丁)
什么意思?
myadaidarling 2003-07-31
  • 打赏
  • 举报
回复
把index.asp文件的前60行贴出来看看!~
skyword 2003-07-31
  • 打赏
  • 举报
回复
注意,是“您”的程序
myadaidarling 2003-07-31
  • 打赏
  • 举报
回复
头错

/rushsky/test/temp/admin/index.asp,行56
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
ASP原程式下载:
http://www.qddhawy.com/rushsky/bg.rar
skyword 2003-07-31
  • 打赏
  • 举报
回复
你的程序
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
我在线等阿!!!
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
UP一下
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
MDB的下载地址是
http://www.qddhawy.com/rushsky/test/temp/data/lyw.mdb

兄弟们,我的错!◎
现在贴出来了!
请帮助!
谢谢大家了!
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
admin_conn.asp 程式:

<%
dim dbpath,conn,startime,db,rs,rs1,rs2,rs3,rs4,rs5,rs6,rs7,rs8,fw_chushou,fw_city,fw_quyu,fw_dizhi,fw_jiaotong,fw_leixing,fw_jiegou,fw_louceng,fw_mianji,fw_zhuangxiu,fw_jiage,fw_lxdh,fw_OICQ,fw_lxname,fw_fbri,fw_guoqi,fw_qtsm,fw_peitao,pid,pwd,pwd2,uname,xb,sfz,email,tel,tishi,tsda
db="../data/lyw.mdb"'这里修改数据库路径或名称
Set conn = Server.CreateObject("ADODB.Connection")
dbpath="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
conn.Open dbpath
%>
netice_cn 2003-07-31
  • 打赏
  • 举报
回复
index.asp 全部程式:
<!--#include file="top.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="css1.css"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>住 在 温 州</title><body>
<TABLE width=777 border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD bgColor=#188eac width=1></TD>
<TD align=middle width=773> <TABLE width=187 border=0 align="left" cellPadding=0 cellSpacing=0>
<TBODY>
<TR align=middle vAlign=top>
<TD width=180 height="110"><!--#include file="dlck.asp"-->
<TABLE height=2 width="100%">
<TBODY>
<TR>
<TD></TD>
</TR>
</TBODY>
</TABLE></TD>
<TD width=10> </TD>
</TR>
</TBODY>
</TABLE>
<table width="577" height="111" border="1" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="22" height="109" bgcolor="#D2D200"><img src="images/xxdd.gif" width="22" height="107"></td>
<td width="549"><table width="365" height="27" border="0" align="left" cellpadding="0" cellspacing="2">
<%
set rs6=conn.execute("select top 6 * from news where mytype='导读信息 ' order by id desc")
if rs6.bof and rs6.eof then
response.write "暂时没有内容"
else

while not rs6.eof
%>
<tr>
<td width="274" bgcolor="#FFFFFF"><font size="2"> <font size="2"><img src="images/jiantou01.gif" width="10" height="8"></font>
<a href="news.asp?xiangxi=<% =rs6("id") %>"><font size="2">
<% =rs6("bt") %>
</font></a> </font></td>
<td width="75"><div align="center"><font size="1">
<% =rs6("riqi") %>
</font></div></td>
<%
rs6.movenext
wend
end if
rs6.close
set rs6=nothing
%>
</tr>
<tr> </tr>
</table>
<table width="138" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="136" height="98"><img src="images/fbxx.gif" width="159" height="74" border="0" usemap="#Map"></td>
</tr>
</table></td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="96,10,159,36" href="fb.asp?lb=出售" alt="免费发布出售信息">
<area shape="rect" coords="2,11,65,36" href="fb.asp?lb=出租" alt="免费发布出租信息">
<area shape="rect" coords="4,48,65,72" href="fb.asp?lb=求租" alt="免费发布求租信息">
<area shape="rect" coords="95,49,160,72" href="fb.asp?lb=求购" alt="免费发布求购信息">
</map> </TD>
<TD bgColor=#188eac width=1></TD>
</TR>
</TBODY>
</TABLE>
<TABLE width=777 height="93" border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD bgColor=#188eac width=1></TD>
<TD align=middle width=773><table width="775">
<tr>
<td width="191" valign="top"><table width="170">

<tr>
<td><div align="center">
<!--#include file="java.asp"-->
</div></td>
</tr>
</table>
<table width="170">

<tr>
<td><div align="center">
<!--#include file="google.asp"-->
</div></td>
</tr>
</table>
<table width="170">

<tr>
<td>
<!--#include file="picture.asp"--></td>
</tr>
</table></td>
<td width="578"><table width="581" cellpadding="2" cellspacing="2">
<tr>
<td width="573"><form name="form1" method="post" action="sousuo.asp">
<table width="580" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="23"><img src="images/tiao002.gif" width="23" height="26"></td>
<td width="542" bordercolor="#FFFFFF" bgcolor="#D7EAEA"><span class=9size><span style="font-size: 9pt" id="fps0">区域:
</span> </span> <span style="font-size: 9pt" id="fps0">
<select name="fw_quyu">
<option value="all" selected>--不限--</option>
<option value="鹿城区">鹿城区 </option>
<option value="龙湾区">龙湾区</option>
<option value="瓯海区">瓯海区 </option>
</select>
</span><span class=9size><span style="font-size: 9pt" id="fps0"> </span></span><span class=9size><span style="font-size: 9pt">面积:
<select name="fw_mianji">
<option value="all" selected>---不 限---</option>
<option value=A>50平方以下</option>
<option value=B>50-70平方</option>
<option value=C>70-90平方</option>
<option value=D>90-110平方</option>
<option value=E>110-150平方</option>
<option value=F>150平方以上</option>
</select>
</span></span><span class=9size><span style="font-size: 9pt" id="fps0">时间:
<select name=fw_fbri>
<option value="all" selected>---不 限---</option>
<option value=7>七天内信息</option>
<option value=15>半月内信息</option>
<option value=30>一月内信息</option>
<option value=90>三月内信息</option>
</select>
</span><span class=9size>
<input align=middle border=0 name=Submit3 id=Submit5 type=submit value=搜索 width=30 rgb(100,100,255); background-color: height=16 class=txt style="border-style: dotted; border-width: 1">
<span style="font-size: 9pt">
<input align=middle border=0 name=clear2 onClick=clear() id=clear25 type=reset value=清除 width=30 rgb(100,100,255); height=16 class=txt style="border-style: dotted; border-width: 1">
</span></span></span></td>
<td width="15"><img src="images/tiao001.gif" width="14" height="26"></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td><!--#include file="czcszx.asp"-->
</td>
</tr>
<tr>
<td><!--#include file="let_zx.asp"--></td>
</tr>
</table></td>
</tr>
</table></TD>
<TD bgColor=#188eac width=1></TD>
</TR>
</TBODY>
</TABLE>
<!--#include file="let.asp"-->
</body>
</html>
加载更多回复(2)

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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