Please visit our sponsors !
The Execute Method
The Execute method executes an ASP file from inside another ASP file. After
executing the called .asp file, the control is returned to the the
original .asp file.
Syntax
Parameter |
Description |
path |
Required. The location of the ASP file to execute |
Example
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!
|
Also look at the Server.Transfer method to see the difference between the
Server.Execute and Server.Transfer methods.
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|