Method does not have same signature as delagate &#039;Delagate sub eventhandler&#039;<BR><BR>I have this method created, and i want to call it on the onclick of an asp button, but when i add the onclick, this error message occurs. <BR><BR>Private Sub approval(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs )<BR>Dim prodchknew As CheckBox = e.Item.FindControl("chk")<BR>Dim updval As String<BR>If prodchknew.Checked Then<BR> updval = "1"<BR>Else<BR> updval = "0"<BR>End If<BR>label.text = prodchknew.Checked <BR>if e.CommandName = "Update" then<BR> myconnection = New <BR><BR>sqlConnection("Server=localhost;UID=Endosc opySqlUser;PWD=2er@9b76m;Database=Endoscopy")<BR> Dim strsql As String = "Update AccountTransfers set Approved=&#039;" & updval & "&#039;" & " where <BR><BR>Productid=" & dg_approval.DataKeys(CInt(e.Item.ItemIndex))<BR><B R> Response.Write(strsql)<BR> mycmd = New SqlCommand(strsql, myconnection)<BR> myconnection.Open()<BR> mycmd.ExecuteNonQuery()<BR> end if<BR>End Sub<BR><BR>----<BR><BR>&#060;asp:Button runat="server" text="Approve" commandname="update" onClick="Approval" ButtonType="PushButton" /&#062;<BR>---------<BR><BR>There is something I am overlooking in this method so the database does not update. I have created a label to attempt to display an output from various points in the method, but nothing is written to the label.