How to call window.alert("message"); from C#?
<p>I have my own exception based on some condition and want to raise an alert when control comes in this catch block </p>

<pre><code>catch (ApplicationException ex)
{
    //want to call window.alert function here
}
</code></pre>
