I'm trying to fire multiple Click events from one click event, but I can't seem to do it from code.
RaiseEvent doesn't fire click events.
The main problem I have is that the Controls are created in a Datagrid and isn't created until runtime, so I use:
Code:CType(me.FindControl("imgBtn"), imageButton).Click()
but it gives me an error:
Quote:'Public Event Click(sender As Object, e As System.Web.UI.ImageClickEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
I know that you can somehow use the BubbleEvent, but I'm not exacly sure how.
Can anybody help me?
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).