public void resultRepeat() { try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("S.S.T", bd); if (registros.Rows.Count > 0) { GridView1.DataSource = registros; GridView1.DataBind(); } else { GridView1.DataSource = null; GridView1.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("P.E.S.V", bd); if (registros.Rows.Count > 0) { GridView2.DataSource = registros; GridView2.DataBind(); } else { GridView2.DataSource = null; GridView2.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("RRHH", bd); if (registros.Rows.Count > 0) { GridView3.DataSource = registros; GridView3.DataBind(); } else { GridView3.DataSource = null; GridView3.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("Correspondencia", bd); if (registros.Rows.Count > 0) { GridView4.DataSource = registros; GridView4.DataBind(); } else { GridView4.DataSource = null; GridView4.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("Plan_Contingencia", bd); if (registros.Rows.Count > 0) { GridView5.DataSource = registros; GridView5.DataBind(); } else { GridView5.DataSource = null; GridView5.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("Covid_19", bd); if (registros.Rows.Count > 0) { GridView6.DataSource = registros; GridView6.DataBind(); } else { GridView6.DataSource = null; GridView6.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("Examen_MA", bd); if (registros.Rows.Count > 0) { GridView7.DataSource = registros; GridView7.DataBind(); } else { GridView7.DataSource = null; GridView7.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("Plan_MA", bd); if (registros.Rows.Count > 0) { GridView8.DataSource = registros; GridView8.DataBind(); } else { GridView8.DataSource = null; GridView8.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("CursosMA", bd); if (registros.Rows.Count > 0) { GridView9.DataSource = registros; GridView9.DataBind(); } else { GridView9.DataSource = null; GridView9.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistFiles("Formatos_sanidad", bd); if (registros.Rows.Count > 0) { GridView10.DataSource = registros; GridView10.DataBind(); } else { GridView10.DataSource = null; GridView10.DataBind(); } } catch (Exception ex) { alerta.MessageBox(this, $"{ex}"); // Response.Redirect("Exceptionnet.aspx"); } }