Welcome Guest Search | Active Topics | Sign In | Register

Color or error message Options
arsalan younus
Posted: Monday, May 1, 2017 9:13:53 AM
Rank: Newbie
Groups: Member

Joined: 4/28/2017
Posts: 4
Hi,

I want to set color of error message when it appears on browser control when any error occurs.

How can I do that?


Thanks
eo_support
Posted: Monday, May 1, 2017 12:39:02 PM
Rank: Administration
Groups: Administration

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

You will need to handle this event and then modify e.ErrorMessage (in HTML) in your event handler:

https://www.essentialobjects.com/doc/eo.webbrowser.webview.loadfailed.aspx

For example, if you want to display the error message in red, you can do:

Code: C#
e.ErrorMessage = "<div style='color:red'>" + e.ErrorMessage + "</div>";


Hope this helps.

Thanks!
arsalan younus
Posted: Tuesday, May 2, 2017 6:07:54 AM
Rank: Newbie
Groups: Member

Joined: 4/28/2017
Posts: 4
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.