How to Catch Errors when Using ObjectDataSource

The Situation: You have an ASP.NET page that uses an ObjectDataSource to provide data access for a GridView, FormView or list control like a DropDownList or CheckboxList. When a data access error occurs, you would like to display a message on the page to help users understand what is happening. A Solution: You could try … Continue reading How to Catch Errors when Using ObjectDataSource

Elmah Signaling – How To Log Exceptions with Elmah but Continue Processing

Elmah is an excellent tool for web programmers. It is an extremely easy to install exception handler that logs application exceptions and sends the user to an "oops" page. It can also send an email to the developer or webmaster. But what if you want to log an error but NOT send the user to … Continue reading Elmah Signaling – How To Log Exceptions with Elmah but Continue Processing