المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Execute code only if query successful



C# Programming
02-01-2011, 11:54 AM
Hi Guys,

I'm having trouble with an exception error after executing a query to return one record from my dataset.

If the query returns a result that doesn't exist within the database, I am getting a 'Exception has been thrown by the target of an invocation'.

Could someone please explain what this means and where I need to look to fix it and avoid an exception?

Thanks,

Joe