P
Patrick
I have a web page with a table that i generate rows for when a database query is run. Each row contains a button column and I would like to add a handler for the click event of the button created at run time. I tried the following code
...
Dim OKButton As Button = New Butto
AddHandler OKButton.Click, AddressOf AcceptButton_Clic
' add the button to the cel
NewCell.Controls.Add(OKButton
' add the cell to the row of the tabl
NewRow.Cells.Add(NewCell
...
and here's the handler
Private Sub AcceptButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs
...
End Su
I am never getting into that handler code. Is what I am trying even possible?
...
Dim OKButton As Button = New Butto
AddHandler OKButton.Click, AddressOf AcceptButton_Clic
' add the button to the cel
NewCell.Controls.Add(OKButton
' add the cell to the row of the tabl
NewRow.Cells.Add(NewCell
...
and here's the handler
Private Sub AcceptButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs
...
End Su
I am never getting into that handler code. Is what I am trying even possible?