Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-24-2005, 09:47 PM   PM User | #1
jaywhy13
Regular Coder

 
Join Date: Dec 2004
Location: Jamaica
Posts: 592
Thanks: 2
Thanked 0 Times in 0 Posts
jaywhy13 is an unknown quantity at this point
When response.isClientConnected=false

When does response.isClientConnected=false or is it just REALLY the true property that you can test for? In that.... what i'm really trying to ask is this:

I've seen code where they do summin like:
'About to print out records
do while not RS.EOF AND response.clientConnected
'do stuff
rs.movenext
loop

When exactly is the user no longer connected (when response.isClientConnected=false) and can you do stuff when the value of response.isClientConnected changes? Like make changes to a database?
jaywhy13 is offline   Reply With Quote
Old 01-25-2005, 03:04 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
response.isClientConnected returns false when the user click the Stop button of the browser while the processing of the asp page is ongoing. In the code you posted, if the processing is currently inside the loop and the user suddenly click the Stop button, the loop terminates causing partial display of the records. That's good because by default, when the Stop button is clicked, the processing of asp codes continues. So adding response.clientConnected check unloads useless server resources that may result from stopping the execution abruptly.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-25-2005, 08:33 AM   PM User | #3
jaywhy13
Regular Coder

 
Join Date: Dec 2004
Location: Jamaica
Posts: 592
Thanks: 2
Thanked 0 Times in 0 Posts
jaywhy13 is an unknown quantity at this point
thanks alot... okay. So thats what happens huh?
jaywhy13 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:45 PM.


Advertisement
Log in to turn off these ads.