国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發(fā)設計 > 正文

Response對象3

2019-11-18 22:20:19
字體:
來源:轉載
供稿:網(wǎng)友
Response對象可以決定接下來向瀏覽器發(fā)送什么頁面。這就是response.redirect的
功用所在。我們創(chuàng)建了一個代碼文件script formjump.asp來演示這種方法

<html><head>
<TITLE>FormJump.asp</TITLE>
</head><body bgcolor="#FFFFFF">
<form action="FormJumPRespond.asp" method="get">
<SELECT NAME="wheretogo">
<OPTION SELECTED VALUE="fun">Fun</OPTION>
<OPTION value="news">Daily News</OPTION>
<OPTION value="docs">ASP IIS3 Roadmap/Docs</OPTION>
<OPTION value="main">MainPage of ActiveServerPages.com</OPTION>
<OPTION value="sample">IIS 3 Sample ASP scripts</OPTION>
</SELECT>
<input type=submit value="Choose Destination">
</form>
</body></html>

表單的反饋如下:

<%response.buffer=true%>
<html><head>
<title>formjumprespond.asp</title>&
<body bgcolor="#FFFFFF">
<%
' My ASP program that redirects to URL
thisURL="http://www.activeserverpages.com"
where=Request.QueryString("Wheretogo")
Select Case where
case "main"
      response.redirect thisURL & "/"
case "samples"
      response.redirect thisURL & "/aspsamp/samples/samples.htm"
case "docs"
      response.redirect thisURL & "/iasdocs/aspdocs/roadmap.asp"
case "news"
      response.redirect "http://www.cnn.com"
case "fun"
      response.redirect "http://www.dilbert.com"
End Select
response.write "All dressed up and I don't know where to go<br>"
response.write "I recommend --> " & "<br>"
response.write server.htmlencode(thisURL & "/learn/test/res2.asp?
where=fun") & "<br>"
response.write "for a good laugh!" & "<P>"
%>
</body></html>



上一篇:Response對象4

下一篇:Response對象2

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 绥江县| 迁安市| 四川省| 镇远县| 大方县| 洛浦县| 汕头市| 鹿泉市| 鄂伦春自治旗| 富蕴县| 辉南县| 庆元县| 团风县| 南阳市| 定陶县| 赤壁市| 铁岭市| 鄂尔多斯市| 陆河县| 太仓市| 古蔺县| 盱眙县| 荔波县| 交城县| 贵溪市| 汕尾市| 凤冈县| 阿瓦提县| 台前县| 日喀则市| 汨罗市| 鄯善县| 兴安盟| 徐汇区| 周宁县| 淮阳县| 宣化县| 遵义市| 佳木斯市| 乌鲁木齐市| 曲靖市|