asp的东西我看不懂。帮我看看。

来源:百度知道 编辑:UC知道 时间:2024/05/24 01:20:49
我自己搞了一个网站。但是我不懂搞后台。所以下了一个。可是代码我都看不懂。能不能帮我翻译一下这些意思。

SP生成HTML说明:
1.打开manage/makeindex.asp
<%
call makeindex("index.html","index.asp")
%>
在<%%>内添加代码格式 [添加怎么代码格式]???
call makeindex("要生成的文件名","目标文件名") [怎么生成文件名?目标文件名是什么?]
比如要把news.asp生成news.html则添加
call makeindex("news.html","news.asp")
注意:要添加所有的前台页面,视情况而定
2.分别打开manage/news/,/anli/,/down/下的html.asp
把Do_Url = Do_Url&Request.ServerVariables("SERVER_NAME")&"/down/shownews.asp"
id=rs("id")
call SaveFile("../../down/"&id&".html",do_url&"?id="&id&"")

都看不懂。我想把我的网站和后台连接起来`真的不会啊 555

生成静态
<%if request.form("Cnhww")="" then%>
<form method="post">
<p align="center"><textarea rows="30" name="Cnhww" cols="90">
<!--#include file="../main.asp"--></textarea>
<input type="submit" values="生成首页" name="B1">
</form>
<%
else
Contert=reuest.form="Cnhww"
Stt fs=Server.Createoject("Script.Filesystemobject")
Filepath=Server.mappath("../inde.htm")
Set htm=fs.opentextfile(filepath,2,true)
htm.write Content
response.write("生成成功")
end if
%>

仅供参考

call makeindex("index.html","index.asp")
是调用makeindex这个函数,后面两个是两个参数

如果完全不懂的话。。是有点麻烦。。

汗啊~~~我觉的应该先去看下基础的大概了解下呀大哥~~

要解决这个问题,你得把sub makeindex()的代码拿出来呀

建议先看下ASP基本知识才对,别人也不可以一下讲那么清楚