<%@ 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>