asp问题 页面是空白的为什么呀

来源:百度知道 编辑:UC知道 时间:2024/05/12 00:50:18
<!--#include file="conn.asp"-->
<% sql="select * from article"
rs.open sql,conn,1,3
if rs.eof and rs.bof then
response.write("暂时没有文章")
else
do while not rs.eof and rs.bof
%>
<BODY>
<DIV id=navmenu_niEasy_popwin style="VISIBILITY: hidden">
<div align="center"></div>
</DIV>
<table background="images/204.gif" cellspacing=0 cellpadding=0 align=center border="0" width="100%">
<tr>
<td width="100%" class=navfont><div align="center">
<table background="images/204.gif" cellspacing=0 cellpadding=0 align=center border="0" width="100%">
<tr>
<td width="100%" class=navfont><!--#include file="title.asp" -->
</table>

查看下源文件,源文件里应该有一行:没有文章。

没有文章时你连body 都没输出。

response.write("暂时没有文章")
else
do while not rs.eof and rs.bof
{{{response.write(sql)}}}
%>
<BODY>

本人是初学者,不是很会,自己理解你看是不是因为没有{}中内容的缘故啊,别取笑我啊 !~谢谢

iis
数据源. 查看一下是否存在问题