web 2.0

ASP.NET(vb.net) Server.Transfer() - Server Object

ASP.NET(vb.net) Server.Transfer() - Server Object - Server.Transfer() : The Transfer method sends all of the information that has been assembled for processing by one .asp file to a second .asp file.

ShotDev Focus:
- ASP.NET(vb.net) Server.Transfer() - Server Object

Example

AspNetServerPage.aspx

<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Response.write("www.ShotDev.Com 2007<br>")
Response.write("www.ShotDev.Com 2008<br>")
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
</form>
</body>
</html>

AspNetServerTransferPage.aspx

<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Response.write("www.ShotDev.Com 2005<br>")
Response.write("www.ShotDev.Com 2006<br>")
Server.Transfer("AspNetServerPage.aspx")
Response.write("www.ShotDev.Com 2009<br>")
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) Server.Transfer() - Server Object
.
.
.
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.