M
Michael Morse
How in a asp.net web form can you have two different objects events call the
same sub with different signatures.
Example:
I have 1 ImageButton control and 1 LinkButton
Sub HandleTheEvent(ByVal sender as object, Byval e as eventArgs)
'blah
End Sub
By doing
AddHandler ImageButton1.Click, AddressOff Me.HandleTheEvent and
AddHandler LinkButton1.Click, AddressOff Me.HandleTheEvent
The signatures do not match up which is understandable. But what do I need
to do to make this work.
Thanks,
-mike
same sub with different signatures.
Example:
I have 1 ImageButton control and 1 LinkButton
Sub HandleTheEvent(ByVal sender as object, Byval e as eventArgs)
'blah
End Sub
By doing
AddHandler ImageButton1.Click, AddressOff Me.HandleTheEvent and
AddHandler LinkButton1.Click, AddressOff Me.HandleTheEvent
The signatures do not match up which is understandable. But what do I need
to do to make this work.
Thanks,
-mike