S
Shapper
Hello,
I have an Asp:LinkButton:
<asp:linkbutton id="myLinkButton" runat="server"
oncommand="Upload_New_Files"/></asp:linkbutton>
I have the following function:
Sub Upload_New_Files(ByVal sender As Object, ByVal e As
CommandEventArgs) Handles myLinkButton.Click
...
End Sub
I get this error:
Method 'Public Sub Upload_New_Files(sender As Object, e As
System.EventArgs)' does not have the same signature as delegate
'Delegate Sub CommandEventHandler(sender As Object, e As
System.Web.UI.WebControls.CommandEventArgs)'.
Can someone tell me what am I doing wrong?
I only want to call Upload_New_Files when the linkbutton is clicked.
Thanks,
Miguel
I have an Asp:LinkButton:
<asp:linkbutton id="myLinkButton" runat="server"
oncommand="Upload_New_Files"/></asp:linkbutton>
I have the following function:
Sub Upload_New_Files(ByVal sender As Object, ByVal e As
CommandEventArgs) Handles myLinkButton.Click
...
End Sub
I get this error:
Method 'Public Sub Upload_New_Files(sender As Object, e As
System.EventArgs)' does not have the same signature as delegate
'Delegate Sub CommandEventHandler(sender As Object, e As
System.Web.UI.WebControls.CommandEventArgs)'.
Can someone tell me what am I doing wrong?
I only want to call Upload_New_Files when the linkbutton is clicked.
Thanks,
Miguel