예제 #1
0
 protected void btnBuscar_Click(object sender, EventArgs e)
 {
     if (txtBuscar.Text != "")
     {
         int res = ic.BuscarInventario(txtBuscar.Text);
         if (res > 0)
         {
             Label10.Text       = res.ToString();
             lblTabla.Text      = ic.tablaInventario(res);
             txtCodigo0.Enabled = true;
             txtCodigo0.Focus();
         }
         else
         {
             lblTabla.Text      = "";
             txtCodigo0.Enabled = false;
         }
     }
 }