统计在线人数...

Asp Object 之:IsClientConnected

[ 来源:中国站长学院 | 作者:风未起时 | 时间:2005-5-5 下午 03:38:57 | 浏览:统计中... ]

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 对象


上一篇:Asp Object 之:PICS

下一篇:Asp Object 之:Form

共有0人参与评价,平均得分:0分
评论内容只代表网友观点,与本站立场无关! 查看完整内容
   

当前在线人数
QQ:748838 MSN:allen_xia#msn.com E-mail:allenxia666#126.com QQ群:站长联盟北方区-北京(28200145) 站长联盟南方区-上海(67713522)