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