worldatlas
MIS
I have a linkbutton in the datalist <EditItemTemplate> to call a sub function.
Example of my code:
<asp:LinkButton ID="Linkbutton5" Text="Multi" Onclick="CallIndividual" Runat="server"></asp:LinkButton></td>
In the code behind page, I have the function CallIndividual as follow:
Sub CallIndividual(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlCorrection.ItemDataBound
Dim txtID As TextBox = e.Item.FindControl("GLID")
End Sub
I want to grab that selected ID control & save it into txtID.
But when I run it, it gave me the following error message:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30408: Method 'Public Sub CallIndividual(sender As Object, e As System.Web.UI.WebControls.DataListItemEventArgs)' does not have the same signature as delegate 'Delegate Sub EventHandler(sender As Object, e As System.EventArgs)'.
Any suggestion is greatly appreciated.
Thank you!
Example of my code:
<asp:LinkButton ID="Linkbutton5" Text="Multi" Onclick="CallIndividual" Runat="server"></asp:LinkButton></td>
In the code behind page, I have the function CallIndividual as follow:
Sub CallIndividual(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlCorrection.ItemDataBound
Dim txtID As TextBox = e.Item.FindControl("GLID")
End Sub
I want to grab that selected ID control & save it into txtID.
But when I run it, it gave me the following error message:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30408: Method 'Public Sub CallIndividual(sender As Object, e As System.Web.UI.WebControls.DataListItemEventArgs)' does not have the same signature as delegate 'Delegate Sub EventHandler(sender As Object, e As System.EventArgs)'.
Any suggestion is greatly appreciated.
Thank you!