
04/05/2012, 12:12
|
 | | | Fecha de Ingreso: marzo-2011 Ubicación: Puntarenas
Mensajes: 261
Antigüedad: 14 años Puntos: 9 | |
Respuesta: MySQL en C# Cita:
Iniciado por alexg88 Tienes que usar un while en vez de un if para recorrer las filas del resultado:
Código C#:
Ver originalComando.CommandText = "SELECT id FROM nombres"; Comando.Connection = Conexion; lector = Comando.ExecuteReader(); while (lector.Read()) { txbID.Text = lector["id"].ToString(); }
Muchas grax me sirvio |