
11/04/2008, 11:37
|
 | Colaborador | | Fecha de Ingreso: septiembre-2007 Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 17 años, 5 meses Puntos: 87 | |
Re: Textbox quieres generar n textbox en base al resultaod de tu consulta sql
porq no haces algo como
donde reader es tu datareader de tu sqlcommand
List<TextBox> controles=new List<TextBox>();
while(reader.Read())
{
textbox=new TextBox();
textbox.Id="txt"+contador;
textbox.Text=reader.getstring (o lo que necesites traer)
controles.Add(textbox);
}
y retornas la lista de textboxes |