System.Web Namespace HttpResponse Class
Gets a value indicating whether the client is still connected to the server.
[ VB ]
Public ReadOnly Property IsClientConnected As Boolean
[ C# ]
public bool IsClientConnected {get;}
[ C++ ]
public: __property bool get_IsClientConnected ( );
[ JScript ]
public function get IsClientConnected ( ) : Boolean;
true if the client is currently connected; otherwise, false.
The following example takes action if the client is currently connected.
[ VB ]
If Response.IsClientConnected = True Then
' ... do whatever here
End If
[ C# ]
if ( Response.IsClientConnected == true )
{
// ... do whatever here
}
HttpResponse Members