Trapping Exceptions on an ObjectDataSource

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
 
G

Guest

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

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top