protected void btnBaja_OnClick(object sender, EventArgs e) { try { _servicioCatalogos.Habilitar(Convert.ToInt32(hfId.Value), false); LlenaCatalogoConsulta(); } catch (Exception ex) { if (_lstError == null) { _lstError = new List <string>(); } _lstError.Add(ex.Message); Alerta = _lstError; } }
protected void OnCheckedChanged(object sender, EventArgs e) { try { _servicioCatalogos.Habilitar(int.Parse(((CheckBox)sender).Attributes["data-id"]), ((CheckBox)sender).Checked); LlenaCatalogoConsulta(); } catch (Exception ex) { if (_lstError == null) { _lstError = new List <string>(); } _lstError.Add(ex.Message); Alerta = _lstError; } }