Чтобы ObjectDataSource не выбрасывал ваше исключение, вы должны установить флаг ExceptionHandled в True.
protected void MyOds_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.Exception != null)
{
//this tells the ObjectDatasource : It's ok, i'm taking care of this
//and don't rethrow it.
e.ExceptionHandled = true
// handle exception here (log/display to user etc ...)
}
}
Надеюсь, это поможет вам.
Manitra.