根据这个页面,我找到相应模板,想修改其中内容,但是,我把这个模板删掉了之后,网页还是照常运行,这个是什么原因呢

jinlaishi 2010-07-09 05:03:29
我找到

这个是about.asp页面
我找到这个页面提到的about.html页面,删掉了之后,这个页面about.asp还是照常运行,没有任何变化,这是什么原因?
<!-- #Include File="Include/EsmsConfig.Asp" -->
<script type="text/javascript" src="http://sfhelp.baidu.com/msg/js/732/1048732.js" charset="gb2312"></script>
<script language="javascript" src="http://cnimg.alisoft.com//js/probe/launch.js?site=4855929"></script><script>__launch_probe('4855929', 'zh_cn');</script>
<%
Set AnRowItEsms = New EsmsMain
AnRowItEsms.ChkSqlIn '检查SQL恶意注入

if lcase(LanguageSet)="en" then
ErrStr1="This data record does't exist!"
ErrStr2="Error, this channel has closed!"
else
ErrStr1="参数错误,该数据记录不存在!"
ErrStr2="对不起,该版块已设置为关闭状态!"
end if

'检查该版块是否设置开放
if lcase(AboutusOption)<>"open" then
Conn.Close
Set Conn=Nothing
response.write "<script>window.alert('"&ErrStr2&"');window.location.href('"&AnRowItEsms.ClientInfo("FromUrl")&"');</script>"
Set AnRowItEsms=Nothing
response.end
end if

Id=trim(request.QueryString("id"))

if Application(CacheName&"Esms_Main_About_"&LanguageSet)="" then Application(CacheName&"Esms_Main_About_"&LanguageSet)=AnRowItEsms.ReadFile("Template/"&LanguageSet&"/About.Html")&""
if Application(CacheName&"Esms_Main_Head_"&LanguageSet)="" then Application(CacheName&"Esms_Main_Head_"&LanguageSet)=AnRowItEsms.ReadFile("Template/"&LanguageSet&"/Head.Html")&""
if Application(CacheName&"Esms_Main_Foot_"&LanguageSet)="" then Application(CacheName&"Esms_Main_Foot_"&LanguageSet)=AnRowItEsms.ReadFile("Template/"&LanguageSet&"/Foot.Html")&""
TplStr=Replace(Application(CacheName&"Esms_Main_About_"&LanguageSet),"{PageHead}",Application(CacheName&"Esms_Main_Head_"&LanguageSet))
TplStr=Replace(TplStr,"{PageFoot}",Application(CacheName&"Esms_Main_Foot_"&LanguageSet))
TplStr=RepSiteInfo(TplStr)
TplStr= AnRowItEsms.ProcessCustomTags(TplStr) '主模板多维循环
If Id="" then
Sql="select top 1 * from [AboutUs]"
else
Sql="select * from [AboutUs] where id="&Id
end if
set Rs=Server.CreateObject("adodb.recordset")
Rs.Open Sql,Conn,1,1
if rs.eof and rs.bof then
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
Set AnRowItEsms=Nothing
response.write "<script>window.alert('"&ErrStr1&"');window.location.href('Index.Asp');</script>"
response.end
else
TplStr=Replace(Tplstr,"{AboutTitle}",rs(LanguageSet&"Title")&"")
TplStr=Replace(TplStr,"{AboutContent}",Rs(LanguageSet&"Content")&"")
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
Set AnRowItEsms=Nothing
end if
Response.write TplStr
Response.End

%>
<!--#include file=T0P.asp-->
<script language="javascript" type="text/javascript">
document.write("<div style='display:none;'>");
</script>
<a href=/producto.asp>1</a>
<script language="javascript" type="text/javascript">
document.write("</div>");
...全文
28 点赞 收藏 2
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lzp4881 2010-07-09
删掉about.html当然不会影响about.asp运行了,它又没有调用或者框架about.html
回复
发动态
发帖子
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
社区公告
暂无公告