asp和vbscript的问题

来源:百度知道 编辑:UC知道 时间:2024/07/04 23:45:15
<Script Language="vbscript">
dim skip
skip=MsgBox ("离开吗?",32+4,"提示")
if skip=6 then
Document.location.href "http://www.126.com"
else
Document.location.href """&<%=urls%>&"""
end if
</Script>
<%
dim urls
urls=request("urls")
response.write(urls)
%>

点“否”后怎么出现的地址是http://127.0.0.1/"&&"呢?
怎么修改呀?
也就是说asp程序中的变量值怎么才能传送到vbscript中?

<%
dim urls
urls=request("urls")
response.write(urls)
%>

<Script Language="vbscript">
dim skip
skip=MsgBox ("离开吗?",32+4,"提示")
if skip=6 then
Document.location.href "http://www.126.com"
else
Document.location.href """"&<%=urls%>&""""
end if
</Script>

反过来
ASP程序中的变量值不能直接传到客户端VBSCRIPT中,ASP程序运行在服务器,你说的VBSCRIPT运行在客户端。。。

你问什么不直接redirect呢?