Transferring Control to Another Page (VB.net) : Transfer « Server « ASP.Net






Transferring Control to Another Page (VB.net)

<%@ Page Language="VB" %>
<html>
<head>
   <title>Transferring Control to Another Page</title>
   <script runat="server">

      Sub Transfer()

'         Dim Url As String = "yourASPFile.aspx"
          Dim Url As String = "file.txt"
         Server.Transfer(Url)
         Response.Write("This code will never be executed!")

      End Sub

   </script>
</head>
<body>

<% Transfer %>

</body>
</html>

           
       








Related examples in the same category