Visual Basic.NET - Textbox select

 
Vista:

Textbox select

Publicado por Ivan (10 intervenciones) el 19/06/2009 03:13:23
Que tal tengo el siguiente codigo y mi pregunta es si puedo meter en un text box el noControl y el estado separado por una coma o un espacio si si me gustaria saber como gracias.}

Using Con

com.CommandText = "SELECT NoControl, Estado FROM tblUsuarios WHERE (NoControl = 85000655)"

com.Connection = Con
dr = com.ExecuteReader()

If dr.HasRows Then

While dr.Read

TextBox1.Text = dr.GetValue(0)

End While

End If

End Using
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de roger

RE:Textbox select

Publicado por roger (186 intervenciones) el 19/06/2009 15:21:49
TextBox1.Text = dr.GetValue(0) & '"," & dr.GetValue(1)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar