Dobrý den, potřeboval bych poradit, jak zachytit Click na dynamicky generovaná tlačítka
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs)
For i As Integer = 1 To 2
Dim btn As New Button
btn.ID = "btn" & i
btn.Text = "tlačítko " & i
Me.div.Controls.Add(btn)
btn.Dispose()
Next
End Sub
Díky za radu
|