如果将动态网页转换成静态网页(即html格式)?

来源:百度知道 编辑:UC知道 时间:2024/09/23 09:24:35
比如,将ASP页面转换成HTML.
ASPX转换成HTML格式!
希望能给出详细点的实现过程,代码.
重分召集高手.
能对你的程序过程做个详细的说明吗?
请回答者注意:不要说用什么另存的方法,这个分类叫”编程”,看清楚再回答吧!我都一再提到了用程序的方法!
另存的网页能作为网站的浏览页面?有点基础常识的回答.只求高手程序,其他的别凑热闹.

修改一下这个就能用:
<%@LANGUAGE="VBSCRIPT" %>
<%
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="http://www.xxxxx.com<