asp中通过url传输数据的问题(菜鸟问题)

<%@LANGUAGE="VBSCRIPT"CODEPAGE="936"%><%dimconnstrconnstr="provider=microsoft.jet.ole... <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
dim connstr
connstr="provider=microsoft.jet.oledb.4.0 ; Data source="&server.MapPath("buildingpagedatabase.mdb")
set conn=server.CreateObject("adodb.connection")
conn.open connstr
%>

<!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>index</title>
</head>

<body>
<a href="index.asp"> BACK TO MAIN </a> 
<a href="add.asp">ADD NEW RECORD </a>
<p>
<%
exec="select * from customerinfo"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
</p>
<p>ALL THE RECORDS LIST BELOW:</p>
<p>
<table border="3" cellspacing="0" cellpadding="0">
<tr>
<td>id:</td>
<td>Name:</td>
<td>Company Name:</td>
<td>Email:</td>
<td>Phone:</td>
<td>Fax:</td>
<td>Mobile:</td>
<td>Address:</td>
</tr>
<%do while not rs.eof%>
<tr>
<% dim cid
cid=rs("id")
%>
<td> <a href="detail.asp?id="&'<%=rs("id")%>'><%response.write(rs("id"))%></a></td>
<td> <%=rs("name")%></td>
<td> <%=rs("companyname")%></td>
<td> <%=rs("email")%></td>
<td> <%=rs("phone")%></td>
<td> <%=rs("fax")%></td>
<td> <%=rs("mobile")%></td>
<td> <%=rs("address")%></td>
</tr>
<p>
<%
rs.movenext
loop
%>
<%
conn.Close
set conn=nothing
%>
</p>
<p> </p>
</body>
</html>
笨笨的问题,就是想用另外一页显示这个id的详细信息,但是id就是传送不过去,不知道怎么办了,请教大家:(
展开
 我来答
百度网友c48973f
推荐于2016-10-07 · TA获得超过754个赞
知道小有建树答主
回答量:229
采纳率:0%
帮助的人:306万
展开全部
把<a href="detail.asp?id="&'<%=rs("id")%>'><%response.write(rs("id"))%></a>改成<a href="detail.asp?id=<%=rs("id")%>"><%response.write(rs("id"))%></a>试试。
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式