I have an image button control defined like this
Protected WithEvents btnSubmit As System.Web.UI.WebControls.ImageButton
...which when clicked fires this.
Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As ImageClickEventArgs)
End Sub
However I have a scenario when this button is not clicked on the page but I need the code to be called. How can I do this in the code behind page?
btnSubmit_Click(btnSubmit, ???)
Protected WithEvents btnSubmit As System.Web.UI.WebControls.ImageButton
...which when clicked fires this.
Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As ImageClickEventArgs)
End Sub
However I have a scenario when this button is not clicked on the page but I need the code to be called. How can I do this in the code behind page?
btnSubmit_Click(btnSubmit, ???)