50分加急 include 与 Server.Execute 的问题//??

amwje123 2003-12-26 10:41:50
<%Server.Execute("id.asp")%>
<!--#include file="news.inc"-->

怎样能使 Server.Execute("id.asp") 里的id 可变如变成10,11,12 等就是说要他是变量
或 <!--#include file="news.inc"--> 里的news是变量//??

急在线等... 不够加分..
...全文
103 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yaodayizi 2004-01-02
  • 打赏
  • 举报
回复
<%a="xxx.asp"
server.execute(a)
%>

这样就行了

但是SERVER.EXECUTE好象不能把本页的变量带到下一页。。不知道高手有办法不
amwje123 2003-12-26
  • 打赏
  • 举报
回复
dim aa
aa=request("id")&.asp
<%Server.Execute("aa")%>

提示出错

Server.Execute 错误

装载此页时调用 Server.Execute 失败。
amwje123 2003-12-26
  • 打赏
  • 举报
回复
好我试试
flying310 2003-12-26
  • 打赏
  • 举报
回复
dim aa
aa=request("id")&.asp
<%Server.Execute("aa")%>
cshadow 2003-12-26
  • 打赏
  • 举报
回复
好像不能
只能写
if then
<!--#include file="news1.inc"-->
elseif then
<!--#include file="news2.inc"-->

....

28,407

社区成员

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

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