asp问题..请求高手回答

来源:百度知道 编辑:UC知道 时间:2024/05/01 13:57:39
<%@LANGUAGE="VBSCRIPT"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>学生查看老师对的作业批改</title>
</head>
<body background="img/10.jpg">
<p>
<a href="index.asp">回首页</a>
<br>
<%
dim username
username=session("curuser")
if username="" then
response.write"没有登陆,不能查看作业,请<a href=zuoyelogin.html>登录</a>"
response.End

else
%>
<table border="1" cellspacing="0" cellpadding="5">
<tr>
<td>老师批改的情况</td>
<td>第几章第几节的答案</td>
<td>上传答案时间</td>
</tr>
'在这里加
<%do while not Rst.eof%>

<tr>
<td width="25%">
<%=rst("key")%><%=rst("pigai")%>
</td>
<td width="40%">
第<%=rst.fields("chapter")%>章 第<%=rst.fields("part")%>节的答案
</td>
<td width="40%"><%=rst("date")%><%=rst("time")%></td>
</tr>
'并且在这里加
<%rst.movenext
loop%>

</table>
</p>
<%
end if