将参数传递给<! - #Include File =" file.asp" - > [英] Pass Parameters to <!-- #Include File="file.asp" -->

查看:68
本文介绍了将参数传递给<! - #Include File =" file.asp" - >的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将参数传递给任何包含的asp

文件的解决方法是什么:


<! - #Include File =" file。 ASP" - >


这显然不起作用:


<! - #Include File =" file.asp?id = 123" - >


谢谢

What is the workaround of passign a parameter to any included asp
file:

<!-- #Include File="file.asp" -->

This obviously does not work:

<!-- #Include File="file.asp?id=123" -->

Thank you

推荐答案

Server.Execute方法

Execute方法调用.asp文件,并将其作为调用ASP脚本的一部分进行处理。 Execute方法与许多编程语言中的过程调用类似。

http://msdn2.microsoft.com/en-us/library/ms525849.aspx


< vu ****** @ gmail.com在消息新闻中写道:11 ********************** @ n76g2000hsh.googlegr psps.com .. 。
Server.Execute Method

The Execute method calls an .asp file, and processes it as if it were part of the calling ASP script. The Execute method is similar
to a procedure call in many programming languages.

http://msdn2.microsoft.com/en-us/library/ms525849.aspx

<vu******@gmail.comwrote in message news:11**********************@n76g2000hsh.googlegr oups.com...

将参数传递给任何包含的asp

文件的解决方法是什么:


<! - #Include File =" file.asp" - >


这显然不起作用:


<! - #Include File =" file.asp?id = 123" - >


谢谢
What is the workaround of passign a parameter to any included asp
file:

<!-- #Include File="file.asp" -->

This obviously does not work:

<!-- #Include File="file.asp?id=123" -->

Thank you



4月3日下午12:45, Jon Paal [MSMD]" < Jon nospam Paal @ Anywhere

dot comwrote:
On Apr 3, 12:45 pm, "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere
dot comwrote:

Server.Execute Method


Execute方法调用.asp文件,并将其作为调用ASP脚本的一部分进行处理。 Execute方法与许多编程语言中的过程调用类似。

http://msdn2.microsoft.com/en-us/library/ms525849.aspx


< vunet ... @ gmail.comwrote in messagenews:11 ********************** @ n76g2000hsh.g ooglegroups.com ...
Server.Execute Method

The Execute method calls an .asp file, and processes it as if it were part of the calling ASP script. The Execute method is similar
to a procedure call in many programming languages.

http://msdn2.microsoft.com/en-us/library/ms525849.aspx

<vunet...@gmail.comwrote in messagenews:11**********************@n76g2000hsh.g ooglegroups.com...

将参数传递给任何包含的asp

文件的解决方法是什么:
What is the workaround of passign a parameter to any included asp
file:


<! - #Include File =" file.asp" - >
<!-- #Include File="file.asp" -->


这显然不起作用:
This obviously does not work:


< ;! - - #Include File =" file.asp?id = 123" - >
<!-- #Include File="file.asp?id=123" -->


谢谢你
Thank you



这样会有效吗?:服务器。执行myfile.asp?id = 123

so will this work?: Server.Execute myfile.asp?id=123


不,你不需要通过任何东西。


外部文件处理信息,好像它是原始文件的一部分。


因此,外部文件中可以使用原始文件(id = 123)中的任何值。
no, you don''t need to pass anything through.

The external file is processes information as though it is part of the originating file.

Therefore any values in the originating file (id=123) can be used by the external file.


这篇关于将参数传递给&lt;! - #Include File =&quot; file.asp&quot; - &GT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆