您现在的位置是:首页 > 电脑技术查询 > 电脑知识

asp execute

编辑:chaxungu时间:2022-09-28 09:34:44分类:电脑知识

aspexecute方法的作用是执行一个来自于其他asp文件内部的asp程序。当其他asp文件内的程序被请求执行完毕之后,控制器将返回最初发出请求的原始asp文件

syntax语法
server.execute(path)

parameter参数
path

description描述
required.thelocationoftheaspfiletoexecute
必要参数。所请求执行的asp文件的本机地址。

example
举例

file1.asp:
<%
response.write("iaminfile1!<br/>")
server.execute("file2.asp")
response.write("iambackinfile1!")
%>file2.asp:

<%
response.write("iaminfile2!<br/>")
%>output:

iaminfile1!
iaminfile2!
iambackinfile1!

回过头来再看看server.transfer方法,你会发现,在“server.execute”和“server.transfer”方法之间存在着不同。





上一篇:米博

下一篇:天象支票通v1.1