Hi, can anyone help.
I have a View which contains two controls : a User Control and a button.
The button has a Click Event handler.
At a point in the code supporting the User Control I want to call the Click handler for the button.
I can get as far as addressing the button from the UserControl code using the following code:
Dim cntlPar As Control = Me.Parent /Get the View
Dim btn As Button = cntlPar.FindControl("cmdOk") /this is the button
Can some kind person help me call the Click Event I have on the button. The Click Handler has a standard look :
Protected Sub cmdOk_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdOk.Click
Thanks for any help.
I have a View which contains two controls : a User Control and a button.
The button has a Click Event handler.
At a point in the code supporting the User Control I want to call the Click handler for the button.
I can get as far as addressing the button from the UserControl code using the following code:
Dim cntlPar As Control = Me.Parent /Get the View
Dim btn As Button = cntlPar.FindControl("cmdOk") /this is the button
Can some kind person help me call the Click Event I have on the button. The Click Handler has a standard look :
Protected Sub cmdOk_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdOk.Click
Thanks for any help.