Bonjour a tous.
J' ai une erreur de type :
Input string was not in a correct format
Voici la ligne d' erreur.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
Line 136:                  produitVente = (Int16.Parse(TxtQteVendus));
Voici mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
string TxtPrixVentes = ((TextBox)(LstVendu.Rows[i].Cells[4].FindControl("TxtPrixVente"))).Text;
  short produitVente;
  produitVente = (Int16.Parse(TxtQteVendus));
      foreach (var p in orders)
                        {
                            short MinForSale = 0;
 
 
                            if (p.QteProdRestante > produitVente )
                                MinForSale = produitVente ;
                            else
                                MinForSale = p.QteProdRestante;
 
                            p.QteProdRestante -= MinForSale;
 
 produitVente -= MinForSale;
 
 
                             if (produitVente == 0) break;                                                   
 
                        }
SVP , que faire ?
Merci a tous.