imterpsfan3
Programmer
I know this is something you usually do in Java Script but not sure how to do it. Whenever I catch an error in a try-catch exception handling, I would like to display the error message and error number in a Java Script alert box.
Something like this:
private void PageLoad(object sender, EventArgs e)
{
//Open database connection
try
{
OpenConnection();
}
catch(SqlException ex)
{
//Display the alert box with error number and
//error message
}
}
Something like this:
private void PageLoad(object sender, EventArgs e)
{
//Open database connection
try
{
OpenConnection();
}
catch(SqlException ex)
{
//Display the alert box with error number and
//error message
}
}