This is what I want to do:
try
{
//some sql insert query here
}
catch (Exception er)
{
MessageBox.Show(er.Message);
}
finally
{
//here I want to check that "Exception er" is defined or exist or value is not null
if is not defined or not exist or value is null
than messagebox show some message
}
}
Best regards.
Edited by Jaan, 18 March 2010 - 06:56 AM.
Please use code tags when you are posting your codes!


Sign In
Create Account

Back to top









