推薦:ASP:True or False,明明白白你的If語句流程通過學習ASP明明白白你的If語句流程。 以下為引用的內容:If condition Then [statements1]Else [statements2]End If
介紹 MyASPPage.asp
<%@ Language=VBScript %>
<HTML>
<BODY>
<% CONST ForAppending = 8
set oFSO = server.CreateObject("Scripting.FileSystemObject")
'translate our virtual directory into a physical path
strFilePath = Server.MapPath(Request.ServerVariables("PATH_INFO"))
'grab the root of the virtual directory
strFilePath = left(strFilePath, (InstrRev(strFilePath, "/")))
strFilePath = strFilePath & "MyFile.txt"
'write out to the screen the full file path
Response.Write(strFilePath & "<BR>")
set oTS = oFSO.OpenTextFile(strFilePath,ForAppending, true)
oTS.writeline("Session Id: " & Session.SessionId & chr(32) & _
"Time: " & Cstr(now()))
%>
</BODY>
</HTML>
這個ASP腳本將在一個文本文件中插入SessionId及其活動時間,這樣我們可以方便地確認我們的ASP頁面是否在正確的執行。一旦你熟悉了這個工具,你就可以指向你實際的ASP頁面以作真正的測試。 分享:ASP中Cache技術的應用ASP從發布至今已經7年了,使用ASP技術已經相當成熟,自從微軟推出了ASP.NET之后就逐漸停止了對ASP版本的更新。但是由于有很多人仍然習慣使用ASP來開發網站,所以,再次我將以一個簡單的例子來說
新聞熱點
疑難解答