asp网页生成静态页面html

来源:百度知道 编辑:UC知道 时间:2024/06/02 07:02:11
我使用以下代码,去将asp网页成才html,在本地测试可以生成。
可是上传到我的空间,却无法生成,请问大家是怎么回事啊??谢谢,该如何改?
<%
filename="top.html"
if request("body")<>"" then
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(server.mappath(""&filename&""))
fout.Write request("body")
fout.close
set fout=nothing
set fso=nothing
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自动生成HTML</title>
</head>
<body>
<form name="form1" method="post" action="test.asp">
<table width="100%" height="558" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="536"><textarea name=&quo

这个页面用到fso组件,可能该服务器将这个组件删掉了或禁用了,也有可能服务器赋予你的权限当中没有写的权限。也有可能是这个服务器根本不支持动态网页。

hjk

看一下。。有没有写入权限~~~