Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser Customizing Download UI C# BeforeDownload and DownloadUpdated start at the same time Options
OlivierD
Posted: Tuesday, March 3, 2015 9:55:58 AM
Rank: Newbie
Groups: Member

Joined: 1/14/2015
Posts: 6
Hi,

I'm doing a implementation to display download progress information in EO.WebBrowser. Before the download begins I need to know if the user wants to Execute, Aave or Save as the file he wants to download. I use the event WebView.BeforeDownload and when the user select the option "Save As", I do e.ShowDialog = true.

To update the information in the form I use the event WebView.DownloadUpdated

My main problem is that the events WebView.DownloadUpdated and WebView.BeforeDownload starts at the same time, so the download begins before the user has selected Execute, Save or Save As or even cancelled the download! Is there a way to tell when to start the download?

Thank you for your support
eo_support
Posted: Tuesday, March 3, 2015 6:57:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This behavior is by design. The download automatically starts on the background as soon as the page is being requested. This way by the time the user decided to save or execute it, the download is already half way. If you do not wish the download to continue, you can get the DownloadItem object and then call Cancel on that object to cancel the item.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.