ASP實現(xiàn)小偷程序原理和簡單示例(2)_ASP教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
推薦:有用的無聲遞交表單的客戶端函數(shù)采用Microsoft.XMLHTTP提交數(shù)據(jù)的形式實現(xiàn)客戶端無刷新 以下為引用的內(nèi)容: <SCRIPT LANGUAGE="vbScript"> dim i,strR
'2、轉(zhuǎn)換亂瑪,直接用xmlhttp調(diào)用有中文字符的網(wǎng)頁得到的將是亂瑪,可以通過adodb.stream組件進行轉(zhuǎn)換
| Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothing End Function |
'下面試著調(diào)用http://www.3doing.com/earticle/的html內(nèi)容
| Dim Url,Html Url="http://www.3doing.com/earticle/" Html = getHTTPPage(Url) Response.write Html %> |
分享:ASP技巧:禁用頁面緩存的五種方法1、在Asp頁面首部<head>加入 以下為引用的內(nèi)容: Response.Buffer = True Response.ExpiresAbsolute = Now() - 1 Resp
相關(guān)ASP教程:
- 相關(guān)鏈接:
- 教程說明:
ASP教程-ASP實現(xiàn)小偷程序原理和簡單示例(2)
。