I would think that you could associate the button with a sub in the codebehind using the Handles attribute.
For example,
Code:
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click
some code
End Sub
You could do this for each button.
- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.