示例#1
0
 protected void btnNew_Click(object sender, EventArgs e)
 {
     if (txtNombre.Text != "")
     {
         int listado = ic.NuevoInventario(txtNombre.Text);
         if (listado > 0)
         {
             Label7.Text       = listado.ToString();
             lblTabla.Text     = "";
             txtCodigo.Enabled = true;
             txtCodigo.Focus();
         }
     }
 }