回 帖 发 新 帖 刷新版面

主题:关于返回页面,请求支援.

dim nowid
nowid=trim(request.form("id")
........
.......
update
rs.close
set rs=nothing
conn.close
set conn=nothing
End If
response.write"<SCRIPT language=JavaScript>alert(' 提交成功! ');"
response.write"this.location.href='informae.asp?id=<%=nowid%>';</SCRIPT>"

修改后存盘,关闭了数据库和连接.dim了nowid. informae.asp是刚才的
修改页面, 想再回到修改页面,这样传回id不可以吗? 写法错误? 
请指教

回复列表 (共2个回复)

沙发

去掉this看看

板凳

在response.write 里就别套 <%=%>了
直接用
response.write("location.href='xxx.asp?id=" & nowid &"';</SCRIPT>")

我来回复

您尚未登录,请登录后再回复。点此登录或注册