Handle the ObjectDataSourceView.Selected event to examine the values of a return value and output parameters or to determine whether an exception was thrown after a data retrieval operation has completed. The return value, output parameters, and exception handling properties are available from the System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs object that is associated with the event.
For more information about handling events, see Consuming Events.