views:

11

answers:

1

I have a silverlight 3 application. When an unexpected exception occurs the error childWindow pops up. I Want to know what code should i write behind the "OK" button so that the application restarts over when the user clicks it.

thanks.

+1  A: 

A quick and simple fix would be to just reload the page that the application is hosted on; you can use the HtmlWindow.Navigate method to accomplish this. If you don't want to reload the whole page, you could stick the application in an <iframe> and just reload that.

Donut