ASP.Net/Response/Connections

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

Checking client connection status (VB.net)

   <source lang="csharp">

<%@ Page Language="vb" %> <html>

  <head>
     <title>Checking client connection status in ASP.NET</title>
     <script runat="server">
        Sub Page_Load()
           If Response.IsClientConnected = False Then
              Response.End
           Else
           End If
        End Sub
     </script>
  </head>

<body>

  <asp:label id="Message" runat="server"/>

</body> </html>

      </source>
   
  


Ending processing (VB.net)

   <source lang="csharp">

<%@ Page Language="vb" %> <html>

  <head>
     <title>Ending processing in ASP.NET</title>
     <script runat="server">
        Sub Page_Load()
           Response.Write("Hello, nfex.ru!")
           Response.End()
           Message.Text = "Hello, nfex.ru!"
        End Sub
     </script>
  </head>

<body>

  <asp:label id="Message" runat="server"/>

</body> </html>

      </source>