private void UpdatePais(Int32 PaisId) { BPPais oBPPais = new BPPais(); ENTPais oENTPais = new ENTPais(); ENTResponse oENTResponse = new ENTResponse(); try { // Formulario oENTPais.PaisId = PaisId; oENTPais.Nombre = this.txtActionNombre.Text.Trim(); oENTPais.Descripcion = this.txtActionDescripcion.Text.Trim(); oENTPais.Activo = Int16.Parse(this.ddlActionStatus.SelectedItem.Value); // Transacción oENTResponse = oBPPais.updatecatPais(oENTPais); // Validaciones if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } // Transacción exitosa ClearActionPanel(); // Actualizar grid selectPais(); // Mensaje de usuario ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Convert.ToString(Guid.NewGuid()), "alert('Información actualizada con éxito!'); focusControl('" + this.txtNombre.ClientID + "');", true); } catch (Exception ex) { throw (ex); } }