protected void dvDataSource_Updating(object sender, ObjectDataSourceMethodEventArgs e) { Broker.DataAccess.PaymentType pt = e.InputParameters["newEntity"] as Broker.DataAccess.PaymentType; PaymentTypeController.ValidateUpdateCode(pt.ID, pt.Code); }