In Classic ASP, I usually check for error number after objCommand.execute. Is this still done in asp.net? If so, how is it done? <BR><BR>Thanks.<BR><BR>Use <BR>Try<BR>' your code here<BR>Catch<BR>' any problems that occur<BR>Finally<BR>'will be done no matter if an error occurs<BR>End Try<BR><BR><BR>TThanks. But how do I capture the error description. Is err.description still valid to use?The error is the Error object and to get the info set an object to use it ie:<BR><BR>'get current context(current information)<BR>Dim context As HttpContext = HttpContext.Current<BR>'declare an exception<BR>Dim ex AS Exception<BR>'get data from the error object<BR>ex = context.Error.GetBaseException()<BR><BR>some of the properties of the exception are:<BR>ex.Message<BR>ex.Source<BR>ex.TargetSite<BR>ex.StackTrace <BR><BR>There are more but these are the ones we primarily deal with.<BR><BR>T