Friday, February 11, 2011

Exceptions Handling

Exceptions in Alert Box:::
---------------------------------------
 try
{
do some thing
}
    catch (Exception ex)
    {

        Response.Write("<script>alert(\"an error occur\")</script>");
    }


References
http://stackoverflow.com/questions/3930941/how-to-show-exception-variable-value-in-alert-box-in-asp-net-using-c

No comments: