|
I have created dynamic buttons in vb.net for an asp.net page, my question now is, how do I get code behind each button for when someone clicks it ?
mybutton.click doesn't work. Someone any idea ?
For i = 1 To 4
Dim myButton As New Button()
myButton.ID = "Button" & i
myButton.Text = "Button:" & i
myButton.Width = Unit.Pixel(100)
myButton.Height = Unit.Pixel(25)
Panel1.Controls.Add(myButton)
Dim test As New LinkButton()
Next
|
|
|
|
|
|
|
|