难住了
第一页 ss.asp
set datacon=server.createobject("adodb.connection")
set rs=server.createobject("adodb.recordset")
datacon.connectiontimeout=20
datacon.open "dsn=datasource","sa","119"
sqlquery="select top 5 时间, 所在区,使用面积,房型,地址,房屋售价 from [ershou]"
set rs=datacon.execute(sqlquery)
%>
<span style="position: absolute; left: 175; top: 733">
<img border="0" src="bmp/4.jpg" width="106" height="32"></span>
<a href="11.asp"><font size="2" color="#00cc33"><<更多的房源<span style="position: absolute; left: 531; top: 675"><img border="0" src="bmp/zhiye.bmp" width="187" height="215"></span></font></a>
</p>
<div align="center">
<table width="51%" border="0">
<tr bgcolor="#99cc99" align="center">
<td width="16%"><font size="2">所在区</font></td>
<td width="20%"><font size="2">使用面积</font></td>
<td width="21%"><font size="2">房型</font></td>
<td width="22%"><font size="2">地址</font></td>
<td width="21%"><font size="2">房屋售价</font></td>
</tr>
<%
c=0
while not rs.eof
c=c+1
if (c mod 2)=1 then
%>
<tr bgcolor="#aaddff">
<%
else
%>
<tr bgcolor="#99cc99">
<%
end if
%>
<td width="16%"><a href=11.asp?id= request(id)><font size="2"><font color="#000000"><%=rs("所在区")%></font></font></a></td>
<td width="20%"><a href=11.asp?id= request(id)<font size="2"><font color="#000000"><%=rs("使用面积")%></font></font></a></td>
<td width="21%"><a href=11.asp?id= request(id)<font size="2"><font color="#000000"><%=rs("房型")%></font></font></a></td>
<td width="22%"><a href=11.asp?id= request(id)<font size="2"><font color="#000000"><%=rs("地址")%></font></font></a></td>
<td width="21%"><a href=11.asp?id= request(id)<font size="2"><font color="#000000"><%=rs("房屋售价")%></font></font></a></td>
</tr>
<%
rs.movenext
wend
%>
第二页就是11.asp
<%
dim b
set datacon=server.createobject("adodb.connection")
set rs=server.createobject("adodb.recordset")
datacon.connectiontimeout=20
datacon.open "dsn=datasource","sa","119"
sqlquery="select 所在区,使用面积,房型,地址,房屋售价 from [ershou] where"
sqlquery=sqlquery& " id="&request.form("id")&""
set rs=datacon.execute(sqlquery)
%>
<span style="position: absolute; left: 178; top: 565">
<img border="0" src="bmp/3.jpg" width="110" height="35"></span>
<a href="11.asp"><font size="2" color="#ff0000"><<更多的房源<span style="position: absolute; left: 530; top: 586"><img border="0" src="bmp/yugong.bmp" width="188" height="80"></span></font></a>
</p>
<div align="center">
<table width="50%" border="0">
<tr bgcolor="#99cc99" align="center">
<td width="16%"><font size="2">所在区</font></td>
<td width="20%"><font size="2">使用面积</font></td>
<td width="21%"><font size="2">房型</font></td>
<td width="22%"><font size="2">地址</font></td>
<td width="21%"><font size="2">房屋售价</font></td>
</tr>
<%
while not rs.eof
b=b+1
if (b mod 2)=1 then
%>
<tr bgcolor="#aaddff">
<%
else
%>
<tr bgcolor="#99cc99">
<%
end if
%>
<td width="16%"><font size="2"><font color="#000000"><%=rs("所在区")%></font></font></a></td>
<td width="20%"><font size="2"><font color="#000000"><%=rs("使用面积")%></font></font></a></td>
<td width="21%"><font size="2"><font color="#000000"><%=rs("房型")%></font></font></a></td>
<td width="22%"><font size="2"><font color="#000000"><%=rs("地址")%></font></font></a></td>
<td width="21%"><font size="2"><font color="#000000"><%=rs("房屋售价")%></font></font></a></td>
</tr>
<%
rs.movenext
wend
%>
</table>
单击所在地区 使用面积 地址均查不到东西地址栏显示
http://sun/iissamples/11.asp?id=%20request(id)
怎么办呀
推荐阅读


讨论区