This is how to handle errors in C#

http://msdn.microsoft.com/library/de...ogether_PG.asp