Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser LoadFailed question Options
Benoit
Posted: Friday, March 27, 2020 9:54:45 AM
Rank: Member
Groups: Member

Joined: 3/27/2020
Posts: 23
Hello,

I have a question regarding LoadFailed in the WebBrowser component.

LoadFailed handler works fine when a new WebView is created.

However I cannot get LoadFail event to be triggered with the following scenario :
1- A new WebView is created, the first page loads correctly
2- I stop the webserver
3- I request a new page on the stopped webserver (click on a link), nothing happens, no error is displayed : LoadFail is not triggered, the display doesn't change (the display stays on the first page, no error is displayed).

How can I trigger LoadFailed event in this scenario? Or how can I display an error?

BTW the behavior is identical using the sample TabbedBrowser application.

Thanks,
Benoit
Benoit
Posted: Monday, March 30, 2020 6:41:44 AM
Rank: Member
Groups: Member

Joined: 3/27/2020
Posts: 23
Apologies, I investigated a bit further, LoadFailed is indeed triggered.

I got it to work with the following line :
if (e.ErrorCode.ToString() != "OK" && e.ErrorCode.ToString() != "Canceled") e.ShouldShowError = true;
eo_support
Posted: Tuesday, March 31, 2020 4:40:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Great. Glad to hear that!


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.