ASP.Net/Server/Transfer

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

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>