Welcome Guest Search | Active Topics | Sign In | Register

EO WebBrowser custom web page instead of "The host name could not be resolved" Options
Biovia
Posted: Monday, January 26, 2015 5:30:44 PM
Rank: Newbie
Groups: Member

Joined: 1/20/2015
Posts: 4
Hi EO Team,

I've looked around the documentation and am not coming up with an obvious solution so am going to here. When we navigate to a non-existent url in the EO WebBrowser we get a simple black on white message that reads "The host name could not be resolved". We would like to replace plain message with a nicer looking web page, maybe more specific to our product, but still showing the error that occurred. Can you give some guidance about how accomplish this task?

Thanks,
-Jason
eo_support
Posted: Monday, January 26, 2015 5:35:38 PM
Rank: Administration
Groups: Administration

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

You would handle LoadFailed event and then set e.ErrorMessage inside the event handler.

Thanks!
Biovia
Posted: Monday, January 26, 2015 7:03:08 PM
Rank: Newbie
Groups: Member

Joined: 1/20/2015
Posts: 4
That would allow me to customize the text that shows in the browser, but will this allow me to spruce up the look and feel as well? I envision showing custom html that is inline with our product skinning. Does the e.ErrorMessage accept html? Thanks again.
Biovia
Posted: Monday, January 26, 2015 7:12:40 PM
Rank: Newbie
Groups: Member

Joined: 1/20/2015
Posts: 4
Sorry I shouldn't have asked the question without trying it first. It appears that html text in the e.ErrorMessage works just fine. Thank you for your help.

Thanks,
-Jason
eo_support
Posted: Tuesday, January 27, 2015 10:41:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
You are very welcome. Please feel free to let us know if you have any more questions.

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.