久久福利影视-久久成人综合网-久久成人亚洲-久久成人性色生活片-免费的黄色小视频-免费的黄视频

歡迎來到安信科技官方網站!【www.www122sihucom3.cn】
18112005550
工作時間: 8:30-21:30
新聞中心
News Center

【ASP】ASP生成靜態頁面最佳方法!

資訊分類: 資源共享  瀏覽: 2017年3月10日

 Private Sub ToHtml(FromURL,FilePath)'FilePath·?"/url/file.html"

dim objXmlHttp,binFileData,objAdoStream
Response.Write("<a href=""" & FilePath & """ target=""_blank"">" & FilePath & " --> Ok</a><br>")
FilePath = Server.MapPath(FilePath)
Set objXmlHttp=Server.createObject("Microsoft." & "XMLHTTP")
objXmlHttp.open "GET",FromURL,false
objXmlHttp.send()
binFileData=objXmlHttp.responseBody
Set objXmlHttp = Nothing
Set objAdoStream=Server.createObject("ADODB." & "Stream")
objAdoStream.Type=1
objAdoStream.Open()
objAdoStream.Write(binFileData)
objAdoStream.SaveToFile FilePath,2
objAdoStream.Close()
Set objAdoStream = Nothing
End Sub
 
在需要生成靜態頁面的位置,調用該過程即可。
Copyright © 2007-2022 安信科技(十五周年紀念版) All Rights Reserved  備案號:蘇ICP備15047094號-3 
網站首頁 |  新聞資訊 |  服務項目 |  軟件產品 |  試用下載 |  需求提交 |  模版建站 |  關于安信 |  產品授權 |  聯系我們 |  定制開發 | 
服務熱線:181-1200-5550  客服QQ: 120094883  | 郵箱:120094883#qq.com(#改@)