Handling errors from the DB.

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

What do most people do to handle errors from the DB?

How about errors in general. It would be nice to have a cleaner page than
the code dump you get from .Net. I see that in web.config you can specify
the error page.

Any thoughts/help would be appreciated.

TIA - J.
 
A good extension point for generic error handling in .Net is the
application_onError event in the global.asax - you can handle all
errors you haven't caught before here (e.g. logging and then
transferring to your error page to display a userfriendly msg).

The last exception not caught in your application code is
Server.LastError
 
A nice way of handling errors is traping exceptions on server side,
communicating them down to client side in a hidden input and producing them
in a standard browser alert box.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top