I'm building a table in the code behind page, adding rows and colums to it, and i added a button into one of the cells.

Dim button9 As New Button
cellButtonb.Controls.Add(button9)

How can i add an event to this button. i tried

Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click

End Sub

but it didnt work


Thanks

Kati