这个链接可以实现吗

z3641401 2009-05-27 08:59:13
<!-- #include file="conn.asp"-->
<!-- #include file="function.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 36px;
font-weight: bold;
}
-->
</style>
</head>
<body>

<p> </p>
<p> </p>
<p align="center" class="STYLE1">停课审核</p>
<table border="2" align="center" width="60%" bordercolor="" cellpadding="0" cellspacing="0" frame="border">
<%set rs=server.createobject("adodb.recordset")
sql="select * from tkxt"
rs.open sql,conn,1,3%>
<tr> <td width="25%" align="center"><b>学院 </b></td>
<td width="25%" align="center"><b>系</b> </td>
<td width="10%" align="center"><b>教师 </b></td>
<td width="20%" align="center"><b>申请时间</b> </td>
<td width="10%" align="center"><b>系主任审核</b> </td>
<td width="10%" align="center"><b>院主任审核 </b></td>
</tr> <br>

<%
do While not rs.EOF
if rs("yzsh")=0 then

%>
<tr> <td width="10%" align="center"><%response.write rs("xy")%></td>
<td width="10%" align="center"><%response.write rs("x")%></td>
<td width="10%" align="center"><a href="xiangqing.asp?ID="&rs("id")&"action=xiangqing"><%response.write rs("jsm1")%></a></td>
<td width="10%" align="center"><%response.write rs("sqsj")%></td>
<td width="10%" align="center"><%response.write rs("xzrsh")%></td>
<td width="10%" align="center"><%response.write ""%></td>
</tr>

<% end if
rs.movenext
loop
rs.close
set rs=nothing
%>
</table>
</body>
</html>

<td width="10%" align="center"><a href="xiangqing.asp?ID="&rs("id")&"action=xiangqing"><%response.write rs("jsm1")%></a></td>
可以通过这个链接读出数据库的值吗?
...全文
35 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Msxindl_Com 2009-05-28
  • 打赏
  • 举报
回复
可以通过这个链接读出数据库的值!

<td width="10%" align="center"> <a href="xiangqing.asp?ID="&rs("id")&"action=xiangqing"> <%response.write rs("jsm1")%> </a> </td>

改成:

<td width="10%" align="center"> <a href="xiangqing.asp?ID=<%=rs("id")%>&action=xiangqing"> <%=rs("jsm1")%> </a> </td>


将所有的response.write改为 = 来精简代码.
ehouse 2009-05-27
  • 打赏
  • 举报
回复
你的程序中出现大量类似 <%response.write rs("xzrsh")%>

直接写成<%=rs("***")%>就可以了。
lzp4881 2009-05-27
  • 打赏
  • 举报
回复
<td width="10%" align="center"> <a href="xiangqing.asp?ID=<%=rs("id")%>&action=xiangqing"> <%=rs("jsm1")%> </a> </td>

28,391

社区成员

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

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