Product Home Page | Developer Site | Version | |
The following code illustrates use of the Server.Transfer method:
File1.asp:
<%
Response.Write("This is line 1 in File1.asp<br>")
Server.Transfer("file2.asp")
Response.Write("This is line 2 in File1.asp")
%>
File2.asp:
<%
Response.Write("This is line 1 in File2.asp<br>")
Response.Write("This is line 2 in File2.asp<br>")
%>
Output would be as follows:
This is line 1 in File1.asp
This is line 1 in File2.asp
This is line 2 in File2.asp
Copyright © 2003 Sun Microsystems, Inc. All rights reserved.