新手学asp

wxq4100798 2004-08-09 09:52:30
1.怎么样调试asp,就是怎么样让asp中断执行,并输出当步骤的结果
2.asp中,连接数据库中的表,表不存在时,程序怎么都不报错啊?还在不停的执行,最后耗尽资源,死机,怎么处理
呵,我是新手,刚学两天,请大家多多指教
下面一段我自已写的代码,哪错了,高手指点一下<!--#include file="../Inc/Conn.asp"-->
<table width="168" height="112" border="1" align="center" cellpadding="3" cellspacing="3" bordercolor="#111111" background="images/index_01b.gif" bgcolor="#FFCCFF" id="AutoNumber1" style="border-collapse: collapse">
<%

dim RSAnnounce
dim query
dim timestamp

timestamp = now()

set RSAnnounce = server.CreateObject("adodb.recordset")
query = "SELECT * FROM announcement where endtime>'"×tamp&"' or (starttime<>'' and endtime='')"
RSAnnounce.open query,conn,1,1
if RSAnnounce.BOF<>true and RSAnnounce.EOF<>true then
do until RSAnnounce.eof

%>

<tr>
<td><marquee direction="up" onMouseOver="this.stop()" onMouseOut="this.start()"><a href="announcement1.asp?aid=<% RSAnnounce("aid") %>"><% response.Write RSAnnounce("aid") %>this is a test</a></marquee></td>
</tr>


<%
RSAnnounce.movenext
loop
else
%>
<tr>
<td align="center">暂时没有公告</td>
</tr>
<%
end if
%>
</table>
...全文
68 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
BubbleInDiamond 2004-08-09
  • 打赏
  • 举报
回复
在出错代码前和各个条件语句块中 加入 Response.Write输出出错可能的原因(调试)

后Response.End 阻止出错语句运行
skyboy0720 2004-08-09
  • 打赏
  • 举报
回复
response.end --终止

28,409

社区成员

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

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