高手帮忙,就帮我看一个语句,很快的,请进来.....谢谢

wjhcjg 2003-10-19 04:03:11
<%filename=request.querystring("click")
if filename="" then
resposne.write "非法进入!"
response.end
end if
str="<!--#include file=glbfile/htm/"&filename&" -->"
%>
<BODY >
<%=str%>
</BODY>

请问我打出str后,为什么达不到效果,比如str的值取得为<!--#include file=glbfile/htm/5@200310191450562.htm -->

但是我运行后不会打开5@200310191450562.htm这个文件,我要在语句中
<!--#include file="ASP的一个变量" --> 要实现在一个ASP页中动态打开一个变量名的文件,怎么实现,谢谢,很急的用!!!
...全文
38 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
caoshangfei 2003-10-19
  • 打赏
  • 举报
回复
不支持动态包含文件。
zhanghuazhanghome 2003-10-19
  • 打赏
  • 举报
回复
学习
wjhcjg 2003-10-19
  • 打赏
  • 举报
回复
提者验证:此方法server.execute("glbfile/htm/"&filename)可以实现这功能,请大冢积累这个经验
zorou_fatal 2003-10-19
  • 打赏
  • 举报
回复
不好意思.
<!--#include file="..."-->
是不支持动态方法的。
kakaxi 2003-10-19
  • 打赏
  • 举报
回复
把HTM后缀改成ASP,就可以了
wjhcjg 2003-10-19
  • 打赏
  • 举报
回复
如用server.execute("glbfile/htm/"&filename)去实现的话,我上面页的一些javascript控制代码无法在glbfile/htm/"&filename的文件中实现,还有没有新的办法
angelheavens 2003-10-19
  • 打赏
  • 举报
回复
server.execute("glbfile/htm/"&filename)

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧