在id=cint(request("id"))之前输入
response.write("id的值:" & request("id"))
response.end
运行后告诉大家结果是什么。
本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!
Set rs = Server.CreateObject("ADODB.Recordset")
sql="Select * From Conews where id="&id
rs.open sql,conn,1,3
'纪录访问次数
rs("counter")=rs("counter")+1
rs.update
nCounter=rs("counter")
'定义内容
content=rs("content")
%>
<table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="77%" height="22" bgcolor="#FDFFFB"> <img src="img/arrow.gif" width="16" height="13"><strong>企业新闻
=> <%=rs("title")%></strong></td>
<td width="23%" bgcolor="#FDFFFB">【<a href='javascript:window.print()'>打印此页</a>】 【<a href='javascript:history.back()'>返回</a>】</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FDFFFB">
<tr>
<td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td height="5"></td>
</tr>
<tr>
<td><div align="center">发布日期:[<%=rs("time")%>] 共阅[<%=rs("counter")%>]次</div></td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td><SPAN class=content
id=BodyLabel
style="PADDING-RIGHT: 10px; DISPLAY: block; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"> <%=content%> <%rs.close%> </span></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"></td>
</tr>
<tr>
<td width="31%" height="22" bgcolor="#FDFFFB"> <div align="right"></div></td>
<td width="69%" bgcolor="#FDFFFB"><div align="right">【 字体:<A href="javascript:ContentSize(16)">大</A>
<A
href="javascript:ContentSize(14)">中</A> <A
href="javascript:ContentSize(12)">小</A> 】【<a href='javascript:window.print()'>打印此页</a>】 【<a href='javascript:history.back()'>返回</a>】【<A
href="javascript:window.scroll(0,-360)">顶部</A>】【<a href="javascript:self.close()">关闭</a>】</div></td>
</tr>
</table></TD>
</TR>
<TR>
<TD
height=1 background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
<TR>
<TD
height=1> </TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
</BODY></HTML>
红色的是那一行
传递过来的值是正确的