<%@ Page Language="VB" %> <html> <head> <title>Transferring Control to Another Page</title> <script runat="server"> Sub Transfer() Dim Url As String = "CreateObject.aspx" Server.Transfer(Url) Response.Write("This code will never be executed!") End Sub </script> </head> <body> <% Transfer %> </body> </html>