Version: 3.0
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 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.
----------CallingAsp.asp----------
<HTML>
<BODY>
How now <%Server.Execute("CalledAsp.asp")%> cow?
</BODY>
</HTML>
----------CalledAsp.asp----------
<%
Response.Write "pink"
%>
How now pink cow?