I cannot figure out what I'm doing wrong, can someone shed some light on
this for me?
I have the following code inside a working user control (MyControl):
Public Event SubmitClick(ByV al sender As Object, ByVal e As EventArgs)
Private Sub btnSubmit_Click (ByVal sender As Object, ByVal e As
System.EventArg s) Handles btnSubmit.Click
RaiseEvent SubmitClick(sen der, e)
End Sub
In the code-behind of the calling page I have this:
Protected WithEvents ctrlMyControl As MyControl
Private Sub ctrlMyControl_S ubmitClick(ByVa l sender As Object, ByVal e As
System.EventArg s) Handles ctrlMyControl.S ubmitClick
End Sub
When I run it through the debugger, the RaiseEvent line fires, but none of
the code in the code-behind runs.
Thanks in advance for any assistance you can lend!
this for me?
I have the following code inside a working user control (MyControl):
Public Event SubmitClick(ByV al sender As Object, ByVal e As EventArgs)
Private Sub btnSubmit_Click (ByVal sender As Object, ByVal e As
System.EventArg s) Handles btnSubmit.Click
RaiseEvent SubmitClick(sen der, e)
End Sub
In the code-behind of the calling page I have this:
Protected WithEvents ctrlMyControl As MyControl
Private Sub ctrlMyControl_S ubmitClick(ByVa l sender As Object, ByVal e As
System.EventArg s) Handles ctrlMyControl.S ubmitClick
End Sub
When I run it through the debugger, the RaiseEvent line fires, but none of
the code in the code-behind runs.
Thanks in advance for any assistance you can lend!
Comment