ASP.Net/Server/Transfer
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>