+ -
当前位置:首页 → 问答吧 → 文件包含怎样传参数呢

文件包含怎样传参数呢

时间:2011-10-10

来源:互联网

我为了把美工和程序分开想了个这个办法,list.asp用于显示新闻列表参数type代表新闻的类型。chinaNews.asp是中国新闻。

我想在chinaNews.asp里面包含list.asp?type=china

<!-- #include file="list.asp?type=china" -->
这样不行

求救!!!

作者: zzt369880281   发布时间: 2011-10-10

<!-- #include file="变量文件.asp" -->
<!-- #include file="list.asp" -->

list.asp中肯定有接受变量的地方吧

作者: chinaskysun   发布时间: 2011-10-10

include不能传参数
----------
?type=china 作为整个页面的参数的话
<%
Server.Execute list.asp
%>
list.asp中直接用 Request("type") 取
----------------
或者用FSO写个include 函数动态读取,效率不高
----------------
或者用WSC写个组件,随时可以调用.

作者: hookee   发布时间: 2011-10-10