ASP生成HTML的问题
来源:百度知道 编辑:UC知道 时间:2024/05/15 09:44:09
晕了,
看来高手是多啊
asp生成html方法的确多
你这个建议使用xmlhttp方法,其实非常简单,原理就是将通过iis解析的asp文件另存
代码如下,部分地方自己修改
<%
function getHTTPPage(url)
dim Http
set Http=server.createobject("MSXML2.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
set http=nothing
if err.number<>0 then err.Clear
end function
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
Dim Url,Html
Url="ASP生成HTML的问题
asp生成html的 问题
asp生成html问题
asp生成html问题!
ASP生成HTML的问题(FSO)
asp生成静态html文件的问题
asp.net生成html的问题!
高手指教ASP生成html的问题
关于ASP生成静态HTML的问题
ASP实时生成HTML的问题