关于参数传递的问题
我在一段代码中传递一个参数。代码如下:
<%
opendb conn
set rst=server.createobject("adodb.recordset")
sql="select top 1 id from upload order by id desc"
rst.open sql,conn,1,1
dim idname
idname=rst("id")
response.write"<script language='javascript'>alert('上传成功!')"&chr(13)&"location.href='new.asp?id=idname'"
%>
但是到了new.asp页面上传过来的却是:"new.asp?id=idname",为什么无法将rst("id")的值赋予参数id呢?
在线等待,解决后马上给分!