ASP Server.Transfer() - Application Object For the current request, terminates execution of the current page and starts execution of a new page by using the specified URL path of the page.
ShotDev Focus:
- The execute of new page.
Example
asp_server_transfer1.asp
<% Response.write("www.ShotDev.Com 2008<br>") Response.write("www.ShotDev.Com 2009<br>") %>
asp_server_transfer2.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Response.write("www.ShotDev.Com 2006<br>") Response.write("www.ShotDev.Com 2007<br>") Server.Transfer("asp_server_transfer1.asp") Response.write("www.ShotDev.Com 2010<br>") %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_server_mappath.asp
Screenshot