medamine009
Messages postés3Date d'inscriptionvendredi 29 juin 2007StatutMembreDernière intervention 8 juin 2008
-
5 juin 2008 à 22:32
cs_coq
Messages postés6350Date d'inscriptionsamedi 1 juin 2002StatutMembreDernière intervention 2 août 2014
-
7 juin 2008 à 22:11
bonjour tt le monde,
j'ai un probleme dans combobox j'ai rempli mon combobox a la connexion avc la base de données mais et c bien marché
voila le code remplire mon combobox
cmd.CommandText = "select num_fil,lib_fil from filiere"
dr = cmd.ExecuteReader
While dr.Read
DropDownList2.Items.Add(dr.GetValue(0))
End While
et c bien marché mais mon probleme se trouve a l'insertion d'un enregistrement quand j'execute ma requete
insert into candidat values('" & num.Text & "','" & nom.Text & "','" & prenom.Text & "','" & date_naiss.Text & "','" & nation.Text & "','" & Me.RadioButtonList1.SelectedValue & "','" & adresse.Text & "','" & ville.Text & "'," & cp.Text & ",'" & email.Text & "','" & DropDownList1.SelectedValue & "','" & DropDownList2.SelectedIndex.ToString & "','" & var & "'," & nbr & ",'non')
dans DropDownList2.SelectedIndex.ToString je recupére juste l'indice et moi je veux la valeur de champ 'mun_fil'
qui peu m'aider?:s
Merci d'avance