Handling errors in Silverlight
By [)ia6l0 iii
Use the Htmlwindow.Eval method value to handle errors in Silverlight
This method is available in the System.Windows.Browser assembly.
In the Application_UnhandledException event, you can capture the Error, and throw the unhandled exception as a Javascript
error.
Code:
System.Windows.Browser.HtmlPage.Window.Eval(string.Format(""My error :
{0}"" , e.Exception.Message);
Handling errors in Silverlight (1124 Views)