首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

asp文件调用有关问题

2012-02-28 
asp文件调用问题?想调用一个asp处理文件,主要这文件不是整网页,是一网页的一部分。如下:问参数怎么传进去?

asp文件调用问题?
想调用一个asp处理文件,主要这文件不是整网页,是一网页的一部分。
如下:问参数怎么传进去?
<!--#include   file= "info.asp?t_width=532&t_height=120 "   -->

info.asp   内容如下:
<%  
'get   parameter     showing     width   and   height   of   the   table
'the   pass   parameter   is   :t_width   ,t_height
dim   t_width
dim   t_height
t_width=Request.QueryString( "t_width ")
t_height=Request.QueryString( "t_height ")
%>

<table   widht= <%=t_width%>   height= <%=t_height%>   cellSpacing=0   cellPadding=0     border=0   style= "border:1   solid   #A9A9A9; "   >
<tr>
<td>
<div   align=center   valigh=center> aaa
</div>
<div   align=center   valigh=center> bbb
</div>
<div   align=center   valigh=center> ccc
</div>
</td>
</tr>
</table>

[解决办法]
你不需要传参数进去,在文件中设定
t_width=532
t_height=120
(必须在include语句前)

在包含文件中直接调用两个参数就可以了,就象一个文件中一样

热点排行