Metoda provedení ASP


❮ Kompletní Reference Server Object Reference

Metoda Execute spustí soubor ASP z jiného souboru ASP. Po provedení volaného souboru ASP se ovládací prvek vrátí do původního souboru ASP.

Syntax

Server.Execute(path)

Parameter Description
path Required. The location of the ASP file to execute

Příklad

File1.asp:

<%
response.write("I am in File 1!<br>")
Server.Execute("file2.asp")
response.write("I am back in File 1!")
%>

File2.asp:

<%
response.write("I am in File 2!<br>")
%>

Output:

I am in File 1!
I am in File 2!
I am back in File 1!

Podívejte se také na metodu Server.Transfer, abyste viděli rozdíl mezi metodami Server.Execute a Server.Transfer.


❮ Kompletní Reference Server Object Reference