IsClientConnectedIsClientConnected 屬性只讀,它指示自上次調用 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 對象 |
溫馨提示:喜歡本站的話,請收藏一下本站!