I have an ASP.NET web application, and I wanted to know how I could display an error message box when an exception is thrown.
For example,
using MessageBox.Show() would cause a message box to show in the server and stop the thread from processing further request unless the box is closed.
What you can do is,
this.Page.ClientScript.RegisterStartupScript(this.GetType(),"ex","alert('" + ex.Message + "');", true);
this would show the exception in client side, provided the exception is not bubbled.