» 网友学堂 » ASP教程 » 取出所有的传递参数短方法 -> 查看 2007年02月16日 更新
取出所有的传递参数短方法
作者:问天 发表时间:2007-2-16 14:52 阅读:137次 在百度搜索相关内容

此方法主要用来掉线后重登陆再返回
out_url1=Request.ServerVariables ("SCRIPT_NAME")
i=0
for each thing in Request.QueryString


x= Request.QueryString (thing)
if i=0 then
out_url1=out_url1&;amp;"?"&;amp;thing&;amp;"="&;amp;x

else
out_url1=out_url1&;amp;"&;amp;"&;amp;thing&;amp;"="&;amp;x

end if
i=i 1
next
response.redirect "xxx.asp?x=正在掉线路上&;amp;y=重新登录&;amp;out_url="&;amp;out_url1

Response.End

返回到本页的方法:

out_url= Request.QueryString ("out_ur1")
response.redirect out_url

#Advertisement