首先需要制作模版,模版通常为html的,其中包含你设置的标签
然后在另外一个asp文件中将模版的内容读取进来,用特定的变量值替换你的模版中的标签。天幻可以用replace函数或者正则表达式都可以
例子:
CreateFile.asp
<%
Dim TagValue:TagValue="标签展示出的效果"
Dim html
Set Fso=Server.CreateObject("Scripting.FileSystemObject")
Set TheFile=Fso.OpenTextFile(Server.MapPath("Template.html"),1)
Html=TheFile.ReadAll
html=Replace(Html,"{text_table}",TagValue)
Response.write(html)
theFile.Close()
Fso.Close()
%>
你千万不要告诉我你要这种的吧!!