求段代码:将ASP转换成HTML文件的

oldmht 2003-12-16 06:20:28
当然是保存asp的运行结果(不是程序)到html文件(为了速度)
用xml么?怎么屏蔽缓存?只要能对本站的asp就行
给段代码阿,能用即结贴,分数不多,就这些了
...全文
110 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
oldmht 2003-12-16
  • 打赏
  • 举报
回复
好东西
值要在保存与备保存的asp中加上
Response.ExpiresAbsolute = Now() - 1
就可以去掉缓存了
zhuomaocn 2003-12-16
  • 打赏
  • 举报
回复
我也想知道怎么屏蔽缓存。

在IIS中把程序保护设置成高,可能能屏蔽掉缓存。
junsisi 2003-12-16
  • 打赏
  • 举报
回复
function getHTTPPage(url) '获取服务器生成的html代码
on error resume next
dim http
set http=Server.createobject("Msxml2.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then exit function
getHTTPPage=bytes2BSTR(Http.responseBody)
set http=nothing
if err.number<>0 then err.Clear
end function

Function bytes2BSTR(vIn)
dim strReturn
dim i,ThisCharCode,NextCharCode
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧