Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/06/2008, 10:39
Avatar de Javier Santamaria
Javier Santamaria
 
Fecha de Ingreso: julio-2007
Mensajes: 296
Antigüedad: 16 años, 9 meses
Puntos: 1
Respuesta: Ejecutar un boton dentro de otro

Hola,

Asi añado yo handlers en runtime a controles creados dinamicamente:

Código PHP:
Private Sub AddHandlers()
        
This sub add the handlers for the radiobutton and checkbox controls created in runtime for the passengers table
        Dim i 
As Integer
        
For 1 To TblPassengers.Rows.Count 1
            Dim rdo 
As RadioButton
            rdo 
TblPassengers.Rows.Item(i).Cells.Item(0).FindControl("RdoLeadtbl" i.ToString)
            
rdo.AutoPostBack True
            AddHandler rdo
.CheckedChangedAddressOf LeadCheckedChanged
            Dim cb 
As CheckBox
            cb 
TblPassengers.Rows.Item(i).Cells.Item(7).FindControl("CBReturntbl" i.ToString)
            
cb.AutoPostBack True
            AddHandler cb
.CheckedChangedAddressOf ReturnCheckedChanged
        Next
End Sub 
Espero que te sirva

Saludos