protected void Listaractas() { try { String bd = Session["BD"].ToString(); var registros = Controlasql.listaactas(bd); if (registros.Tables[0].Rows.Count > 0) { GridViewactas.DataSource = registros; GridViewactas.DataBind(); } else { GridViewactas.DataSource = null; GridViewactas.DataBind(); } } catch (Exception e) { alerta.MessageBox(this, $"{e}"); } }
public void consecutivos() { try { String bd = Session["BD"].ToString(); var registrosm = Controlasql.lista_idmanteni(bd); if (registrosm.Tables[0].Rows.Count > 0) { DataTable dt1 = Session["Tabla"] as DataTable; Session["Tabla"] = registrosm; GridViewactas.DataSource = registrosm; GridViewactas.DataBind(); } else { GridViewactas.DataSource = null; GridViewactas.DataBind(); } } catch (Exception e) { throw e; } }