Response.IsClientConnected does not work in IIS6

This is a discussion on "Response.IsClientConnected does not work in IIS6" within the Classic ASP section. This forum, and the thread "Response.IsClientConnected does not work in IIS6 are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old May 22nd, 2006, 13:23
New Member
Join Date: May 2006
Location: Norway
Age: 38
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Response.IsClientConnected does not work in IIS6

Hello,

The Response.IsClientConnected property return always TRUE in IIS6. I believe this is a bug in IIS5.1 and IIS6. Is there anybody that knows how to solve this problem or if there is a way around?

Any help is deeply appreciated.

Sincerely
Jacque
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 22nd, 2006, 19:34
Up'n'Coming Member
Join Date: Apr 2006
Location: Missouri
Age: 32
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Response.IsClientConnected does not work in IIS6

Can you post your code?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 22nd, 2006, 22:48
New Member
Join Date: May 2006
Location: Norway
Age: 38
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Re: Response.IsClientConnected does not work in IIS6

The thing is that exactly the same code works perfectly in my development environement using IIS5 running on W2K. However, when this code is uploaded to my production server running IIS6 on Win2003, the Response.IsClientConnected property always returns True.

The code is quite simple and looks like this:
'*************************************
Response.ContentType = INFileType
Response.Buffer = False
Response.Expires = -1
Call Response.AddHeader ("Content-Disposition", "attachment; filename=" & INFileName)
Call Response.AddHeader ("Content-Length", INFileSize)
Do
Response.BinaryWrite tempDataStream.Read(cteBatchSize)
Loop until (Response.IsClientConnected=false or tempDataStream.EOS=true)
'*****************************************
The idea is to stop the download process server side whenever the client cancels it or the file is completely downloaded. However, what I am experiencing is that even when the customer cancels the download, the loop is executed until EOS=true because Response.IsClientConnected never returns False.

The download process is so that whenever a customer clicks on a download link he is redirected to an asp-file that makes some processing to check the validity of the link. If the link is valid, the download dialog box is prompted and the file streamed by the code shown above. Every thing happens in the same ASP-page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
work, iis6

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.write if statements in a form? natalief2008 Classic ASP 1 May 5th, 2008 21:58
WrapArray for displaying XML/SOAP response solovengo JavaScript Forum 0 Nov 17th, 2007 00:18
Cant figure out senton and response Foobster ASP.NET Forum 0 Aug 15th, 2007 10:01


All times are GMT. The time now is 15:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42