取出所有的传递参数短方法

2016-01-29 18:33 1 1 收藏

取出所有的传递参数短方法,取出所有的传递参数短方法

【 tulaoshi.com - ASP 】

  此方法主要用来掉线后重登陆再返回
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&"?"&thing&"="&x

else
    out_url1=out_url1&"&"&thing&"="&x

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

    Response.End

返回到本页的方法:

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


 

来源:https://www.tulaoshi.com/n/20160129/1506323.html

延伸阅读
标签: Web开发
代码如下: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" html xmlns="http://www.w3.org/1999/xhtml" head title/title script src="js/Jquery1.7.js" type="text/javascript"/script script type="text/javascript" $(function () { $('#Button1').cl...
孕妇用蚊香 蚊香是市民灭蚊的主要手段之一:盘式蚊香、电热蚊香液、电热蚊香片…据说蚊香含有农药成分,长期使用对人体有害,尤其是孕妇更要慎用。一些打着婴儿孕妇的“专用”的驱蚊产品是否真的安全吗? 所有的...
标签: Web开发
一、利用全局变量 这是最简单的一种方式,比如Google Adsense: script type="text/javascript"google_ad_client = 'pub-3741595817388494';/scriptscript type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"/script 缺点是引入了全局变量。其中引入文件的方式还有两个...
标签: Web开发
一、利用全局变量 这是最简单的一种方式,比如Google Adsense:  程序代码 script type="text/javascript" google_ad_client = 'pub-3741595817388494'; /script script type="text/javascript" src="http://pagead2. googlesyndication.com/pagead/show_ads.js"/script 缺点是引入了全局变量。其中引入文件的方式还有两个变体...
import java.awt.*; import java.applet.*; /**  * pTitle: 带阴影的文字/p  * pDescription: 使用Applet和Graphics,实现一个文字的移动广告。/p  * pCopyright: Copyright (c) 2003/p  * pFilename: ShadowText.java/p  * @version 1.0  */ public class ShadowText extends Applet implements Runnable ...

经验教程

991

收藏

48
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部