cs_Smoofy
- Messages postés
-
4
- Date d'inscription
- mardi 25 janvier 2005
- Statut
- Membre
- Dernière intervention
- 28 juillet 2005
en fait je pensais pouvoir y arriver, mais comment construit-on la droplist?
void ChargerListes()
{
OdbcConnection connexion = new OdbcConnection((string)Application.Get("CS"));
connexion.Open();
OdbcCommand oCmd = new OdbcCommand();
oCmd.Connection = connexion;
//ddl_sal
oCmd.CommandText= "select * from SALARIES;";
OdbcDataReader oDRsal = oCmd.ExecuteReader();
while (oDRsal.Read())
{
ddl_sal.Items.Add(oDRsal.GetString(1));
}
connexion.Close();
}
moi g fait ça mais ça marche pa :/