469,647 Members | 1,745 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

How to know when download File was cancelled?

Hi there

I want to record in a Db when a file is download via my website. These
are actual download links not someone flogging my sites images. I have
an ahref pointing to my apsx page containing the file to download.

Im using

Response.AppendHeader("Content-Disposition", "attachment; filename=" &
_filename)

so the user gets a dialog box im sure you're all familiar with... My
question is how do i know when the user cancells the download so i can
determine whether to update my Db?

TIA

Henry
Nov 17 '05 #1
2 2039
Hi,

If you will implement HTTP handler for the download files types you can
have full control if someone download them.

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
Assuming you're streaming out the file, you need to check every so often to
make sure Response.IsClientConnected. If the user bails out of the download
for some reason then this will return false before you finish sending your
full page (which is actually file.)
Here's more info:
http://msdn.microsoft.com/library/de...ectedtopic.asp

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net

"Admin" <in**********@hotmail.com> wrote in message
news:37*************************@posting.google.co m...
Hi there

I want to record in a Db when a file is download via my website. These
are actual download links not someone flogging my sites images. I have
an ahref pointing to my apsx page containing the file to download.

Im using

Response.AppendHeader("Content-Disposition", "attachment; filename=" &
_filename)

so the user gets a dialog box im sure you're all familiar with... My
question is how do i know when the user cancells the download so i can
determine whether to update my Db?

TIA

Henry

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by VBTricks.de.vu Webmaster | last post: by
5 posts views Thread by Dan D | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.