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
|
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;
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great. Glad to hear that!
|