"###################################################(代碼開始) < html> < head> < meta http-equiv="Content-Type" content="text/html; charset=gb2312"> < META NAME="Author" CONTENT="蒲俊杰"> < META NAME="Keywords" CONTENT="ASP,www.aspcn.com"> < title>Response測試 < /head> < body>
< html> < head> < meta http-equiv="Content-Type" content="text/html; charset=gb2312"> < META NAME="Author" CONTENT="蒲俊杰"> < META NAME="Keywords" CONTENT="ASP,www.aspcn.com"> < title>Response測試 < /head> < body> < ? echo " 這是一個測試,你好呀!歡迎你訪問我們的網站< a href=http://www.aspcn.com>www.aspcn.com " ; ?> < /body> < /html>
< /body> < /html> "###################################################(代碼結束) test.php文件被當作一個文本文件include進來了,但是如果我們把原來的Server.asp文件中的Server.Transfer "test.php"換成 Server.Transfer "Response.asp"在Try一下(這樣做,其實是讓你了解ASP的引擎對于Server.Transfer的具體的解析情況),看看結果?是不是同我們直接運行Response.asp的結果一樣??? 我不知道,你現在對于Server.Transfer的用法糊涂沒有?我都有一點糊涂了!但是不要忘了我寫這篇東西的關鍵:Server.Transfer比Response.Redirect好,因為前者少了一個流程,加快了速度的,節約了時間,后者我就不說了,只是提醒你一點的就是Server.Transfer到底該用在什么條件下(前面很清楚了,我不多說了,再說我也就糊涂了,你多Try幾下就明白了)!
|