日期:2014-05-17  浏览次数:21131 次

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语句前)

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