孤 失去:ASP的问题

来源:百度文库 编辑:高考问答 时间:2024/05/10 08:37:13
需求:我获取客户从上一个页面链接过来的id号打印出来.
如客户在上一个页面点击链接后的地址(http://www.xxx.com/rs.asp?id=1575)
我要在ra.asp这个页面获取这个id值并打印出来.

我是这样写的:
<%
dim temp
temp = request.ServerVariables("id")
response.Write temp
%>

但是没有得到我想要的结果...请问是哪里出错落??

<%
dim temp
temp = request.ServerVariables("id") (X)
temp = request.querystring("id")
response.Write temp
%>