public void getEventosXML() { try { Controllers.EventosController obEventosController = new Controllers.EventosController(); var lstclsEventos = obEventosController.getEventosXMLController(); if (lstclsEventos != null) { gvwDatos.DataSource = lstclsEventos; } else { gvwDatos.DataSource = null; } gvwDatos.DataBind(); } catch (Exception ex) { ClientScript.RegisterStartupScript(this.GetType(), "Mensaje", "<script> swal('Error','" + ex.Message + "','error') </script>"); } }
void getEventosXML() { try { Controllers.EventosController obEventosController = new Controllers.EventosController(); var lstclsEventos = obEventosController.getEventosXMLController(); if (lstclsEventos != null) { gvwDatosXML.DataSource = lstclsEventos; } else { gvwDatosXML.DataSource = null; } gvwDatosXML.DataBind(); } catch (Exception ex) { Logica.BL.clsGeneral obclsGeneral = new Logica.BL.clsGeneral(); string stError = obclsGeneral.Log(ex.Message.ToString()); ClientScript.RegisterStartupScript(this.GetType(), "mensaje", "<script>swal('Error!', '" + stError + "', 'error')</script>"); } }