protected void btnAceptar_Click(object sender, EventArgs e) { if (this.MyPage.IsGroupValid("vgAfiliadoCtrl")) { Afiliado afiliado = this.GetAfiliadoFromControls(); if (afiliado.Persist()) { this.AceptarEvent.Invoke(true); } else { this.AceptarEvent.Invoke(false); } this.ResetControl(); } }