free e- mail
thaimail
hotmail
yahoo
siam2you
thammasat
Home
Visual Basic
Active Server Page
JavaScript
Network
Other
Active Server Pages.
Transfer Method
Server Object
All Methods
All Objects
All Properties
METHOD: Server.Execute
Implemented in version 3.0
Server.
Execute
(Path)
The
Execute
method allows you to call another ASP page from inside an ASP page. When the called ASP page completes its tasks, you are then returned to the calling ASP page. The overall effect is very similar to a function or subroutine call. Any text or output from the called ASP page will be displayed on the calling ASP page. The
Execute
method is a more useful alternative to using server-side includes.
In contrast, the
Transfer
method allows you to transfer from one ASP page to another without returning to the calling ASP page.
There is one mandatory argument.
Path
The
Path
argument is a string specifying either the absolute or relative path of the ASP page being called. The file name must be included in the path. The entire
Path
must be enclosed inside a pair of quotes. The
Path
argument can also include a query string.
Code:
----------CallingAsp.asp----------
<HTML>
<BODY>
How now <%
Server.Execute
("CalledAsp.asp")%> cow?
</BODY>
</HTML>
----------CalledAsp.asp----------
<%
Response.Write "pink"
%>
Output:
How now pink cow?
Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information
ASP - Link
ASP reference
B
C
D
E
F
G
Last update:
Copyright © 2001.Memo Wil@keo everything that I like Co.,Ltd.