
11/05/2005, 03:53
|
 | | | Fecha de Ingreso: abril-2005
Mensajes: 611
Antigüedad: 19 años, 10 meses Puntos: 1 | |
2 opciones Puedes hacerlo como dice Neivan con el bucle:
ComboClientes.Items.Add("Selecciona: ");//con esto añades la linea que quieras
while (reader.Read())
{
ComboClientes.Items.Add(reader[1].ToString());
}
o con:
ComboLogin.Items.Insert(0,"SELECIONE UN ELEMENTO")// no si va aqui o despues
ComboLogin.DataSource = reader1;
ComboLogin.DataTextField = "UsLogin";
ComboLogin.DataValueField = "UsId";
ComboLogin.DataBind(); |