下面是a.asp中超链的代码:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from see order by id desc"
rs.open sql,conn,1,1
%>
<a href="b.asp?id=<%=rs("id")%>"><%=rs("title")%></a>
</body>
</html>
下面是b.asp中的部分代码:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from see where id="&request("id")
rs.open sql,conn,1,1
%>
<table width="100%"
border="0">
<tr>
<td><%=rs("id")%></td>
<td><%=rs("content")%></td>
</tr>
</table>
</body>
</html>
[此贴子已经被作者于2007-1-8 15:20:47编辑过]