protected void ActualizarTipoDocu(object sender, EventArgs e) { try { obj_tipoDocumento = new TipoDocumento(); if (obj_tipoDocumento.ActualizarTipodocu(NombreTipoDocu.Text, idTipoDocu.Text, estadoTipoArti.SelectedItem.Text)) { ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", " Swal.fire( 'REGISTRO ALMACENADO', '', 'success')", true); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", " Swal.fire( 'EL REGISTRO NO FUE ALMACENADO', '', 'error')", true); } } catch (Exception) { ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", " Swal.fire( 'ERROR DE CONEXION', '', 'error')", true); } }