Trapping Exceptions on an ObjectDataSource

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am binding an ObjectDataSource to a GridView, and I want to be able to trap
and respond to an exception within the data source whenever the grid is being
populated. Since this is controlled automatically where can this be done. Can
this be done?

Thanks
 
I usually have the ObjectDataSource bound to a Business Logic Layer where all
exceptions are handled. If the BLL has to throw an exception then I would
trap it while handling the Page Error event.
 

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