How to have one onclick event execute the second onclick event
Posted on 2006-11-03
How would I have a button onclick event call another onclick event. It's hard to explain, but the onclick event arguments of one button is not the same as the onclick arguments of the other button due to each of the buttons being within different controls. I need the first button to act as an agent of the second button.
In the code behind, the first button has an argument of:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Execute the second button
The second button has an event argument of:
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As Control.ViewUpdatedEventArgs)
I need the first button to execute the second.