ASP.net

josella Messages postés 16 Date d'inscription lundi 14 mai 2007 Statut Membre Dernière intervention 14 mai 2011 - 22 avril 2011 à 16:34
 Utilisateur anonyme - 24 avril 2011 à 21:30
Bonjour tt le monde ,

j'ai un soucis concernant une erreur de l'ASP.net:
error converting data type varchar to numeric.
cmd.CommandText "UPDATE voyage SET matricule '" & txtmat.Text & "' " & _
" ,designation = '" & txtdesignation.Text & "' " & _
" ,nom_prenom = '" & txtNch.Text & "' " & _
" ,date_voyage = '" & txtdate.Text & "' " & _
" ,depart = '" & txtdepart.Text & "' " & _
" ,arrive = '" & txtarriver.Text & "' " & _
" ,prix = '" & txtprix.Text & "' " & _
" ,gazoil = '" & txtgazoil.Text & "' " & _
" ,frais = '" & txtfrais.Text & "' " & _
" ,observation = '" & txtobservation.Text & "' " & _
" ,num_bon = '" & txtnumbon.Text & "' " & _
" WHERE id_voyage = " & GV.DataKeys.Item(e.RowIndex).Value
' " ,date_voyage = '" & txtdate.Text & "' " & _

cmd.ExecuteNonQuery()
GV.EditIndex = -1
GV.ShowFooter = True
BindData()

1 réponse

Utilisateur anonyme
24 avril 2011 à 21:30
Dans ton message d'erreur, il est précisé qu'il y a un problème de conversion d'une chaîne en valeur numérique.

As-tu essayé en enlevant tes ' ' pour tes champs prix, frais, num_bon ?


-- Pylouq : jongleur de clavier AZERTY et de clavier QWERTZ --
0
Rejoignez-nous