当前位置:系统之家 > 技术开发教程 > 详细页面

Asp Object 之:IsClientConnected

Asp Object 之:IsClientConnected

更新时间:2022-05-22 文章作者:未知 信息来源:网络 阅读次数:

IsClientConnected

IsClientConnected 属性只读,它指示自上次调用 Response.Write 之后,客户端是否与服务器相连。

语法

Response.IsClientConnected ( ) 

注释

该属性允许用户在客户端与服务器没有连接的情况下有更多的控制。例如,在从客户端提出请求起到服务器作出响应,其间要用去很长一段时间的情况下,这就可能有助于确保在继续处理脚本之前客户端仍是连通的。

示例

<% 'check to see if the client is connectedIf Not Response.IsClientConnected Then   'get the sessionid to send to the shutdown function  Shutdownid = Session.SessionID'perform shutdown processing  Shutdown(Shutdownid)   End If%>

应用于

Response 对象


温馨提示:喜欢本站的话,请收藏一下本站!

本类教程下载

系统下载排行