c# - Confirm that file has been downloaded -


is there way confirm user has downloaded file? (as opposed having refused download, or cancelling in middle?) preferably in c# codebehind.

when using: response.write(...); .

you can use response.isclientconnected check if still client connected.

from msdn

this property enables greater control on circumstances client may have reset connection server. example, if long period of time has elapsed between when client request made , when server responded, may beneficial make sure client still connected before continuing process script.

after write response using response.write, execute check if client connected, if true means file written response/ downloaded.

http://msdn.microsoft.com/en-us/library/ms525453(v=vs.90).aspx


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -