唐骏天使限速:各位高手教教我这句ASP语句哪里错了啊?

来源:百度文库 编辑:中科新闻网 时间:2024/05/10 11:21:53
<p><%if not rs.eof then response.Write"<a href=liuyan.asp?id="&rs("id")&">查看留言</a>"</p>

不知道哪里错了。就卡在这里,急。

<p><%if not rs.eof then response.Write"<a href=liuyan.asp?id="&rs("id")&">查看留言</a>"%></p>
就是少一个"%>"结束符号

response.Write "<a href='liuyan.asp?id="&rs("id")&"'>查看留言</a>"</p>
应该是这样吧

<p>
<%if not rs.eof then
response.Write"<a href=liuyan.asp?id="&rs("id")&">查看留言</a>"
end if
%>
</p>
如果id是数字应该这样:
<p>
<%if not rs.eof then
response.Write"<a href=liuyan.asp?id='"&rs("id")&"'>查看留言</a>"
end if
%>
</p>