[問題] 前端如何得知 HttpResponse 下載完成

作者: kisha024 (4545454554)   2023-01-09 14:13:28
各位好
我在 aspx 有個 button
button click後 在 CodeBehind 執行 Response.BinaryWrite 下載檔案,大致上如下
https://ithelp.ithome.com.tw/articles/10127947
我想在檔案下載完成後 在前端執行一個handler
請問有辦法透過註冊事件來偵測到 下載完成嗎?
謝謝
作者: testPtt (測試)   2023-01-09 14:48:00
WebClient.DownloadFileCompleted

Links booklink

Contact Us: admin [ a t ] ucptt.com