Пример #1
0
 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}");
     }
 }
Пример #2
0
 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;
     }
 }