Call Javascript function from code-behind in C#.NET
<p>I am trying to call a javascript simple alert function when I catch an exception in my C# code as follows:</p>

<p>inside my function:</p>

<pre><code>try
{
    //something!
}
catch (Exception exc)
{
    ClientScript.RegisterStartupScript(typeof(Page), "SymbolError", 
     "&lt;script type='text/javascript'&gt;alert('Error !!!');return false;&lt;/script&gt;");
}
</code></pre>

<p>Is there another way I can do this, because this doesn't show any alert boxes or anything??</p>
