示例#1
0
 protected void btnenvia_Click(object sender, EventArgs e)
 {
     if (txtnombres.Value.Equals(" "))
     {
         alerta.MessageBox(this, "No se encuentra ningun Cajero con Efectivo");
     }
     else
     {
         try
         {
             var registros = Controlasql.Cagregarecogida(selectccosto.Value, txtnombres.Value, txtvalo.Value, Session["USUARIO"].ToString());
             if (registros > 0)
             {
                 listadorecogida();
                 txtnombres.Value = "";
                 alerta.MessageBox(this, "Registro Exitoso");
             }
         }
         catch (Exception ex)
         {
             alerta.MessageBox(this, "Excepcion Interna" + ex.Message);
         }
     }
 }