web 2.0

ASP Server.Transfer() - Server Object

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

ASP & Server.Transfer()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.