Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/06/2006, 08:46
Avatar de krloss
krloss
 
Fecha de Ingreso: abril-2006
Mensajes: 55
Antigüedad: 18 años
Puntos: 1
si pero ahora me sale q los controles deben tener identificadores unicos sus id
aqui t emando el codigo donde los creo
Código PHP:
while(b!=a)
                {
                
                    
TextBox objTextBox = new TextBox();
                    
objTextBox.ID "categ" "-"+b;
                    
objTextBox.Text "";
                    
Label objLabel=new Label();
                    
objLabel.ID="label_"+b;
                    
objLabel.Text="Nª "+b+1;
                    
RadioButton objRadioButton=new RadioButton();
                    
objRadioButton.ID="radio";
                    
//CheckBox objCheckBox=new CheckBox();
                    
objrow = new TableRow();
                    
TableCell objCell = new TableCell();
                    
objCell.Controls.Add(objLabel);
                    
objrow.Cells.Add(objCell);
                    
objCell = new TableCell();
                    
objCell.Controls.Add(objTextBox);
                    
objrow.Cells.Add(objCell);
                    
objCell = new TableCell();
                    
objCell.Controls.Add(objRadioButton);
                    
objrow.Cells.Add(objCell);
                    
tablas.Rows.Add(objrow);
                    
b++;
                }