135
rated 0 times
[
140]
[
5]
/ answers: 1 / hits: 32562
/ 14 Years ago, fri, july 16, 2010, 12:00:00
I am trying to call a javascript simple alert function when I catch an exception in my C# code as follows:
inside my function:
try
{
//something!
}
catch (Exception exc)
{
ClientScript.RegisterStartupScript(typeof(Page), SymbolError,
<script type='text/javascript'>alert('Error !!!');return false;</script>);
}
Is there another way I can do this, because this doesn't show any alert boxes or anything??
More From » c#