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
|
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.aspxFor 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!
|
Rank: Newbie Groups: Member
Joined: 4/28/2017 Posts: 4
|
Thanks.
|