Yes, Thanks All !
Steve
"Raterus" <raterus@localhost> wrote in message
news:e6**************@TK2MSFTNGP10.phx.gbl...
Is this what you are after?
Private Sub ImageButton_Command(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.CommandEventArgs)
'do something
End Sub
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim btn As ImageButton = new ImageButton
AddHandler btn.Command, AddressOf ImageButton_Command
End Sub
--Michael
"Steve Caliendo" <sc*******@epion.com> wrote in message
news:e3****************@TK2MSFTNGP12.phx.gbl...
Hi,
My last post was not worded correctly. What I really need to know is how
(what to type) to create an event handler for some ImageButtons that I
generate at run-time. I tried this:
Private Sub ImageButton_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Stop
End Sub
But the stop statement was not encountered after clicking on the
ImageButtons.
Thanks for any help,
Steve