Link to home
Start Free TrialLog in
Avatar of bcoussens
bcoussens

asked on

does not have the same signature as delegate 'Delegate Sub

I dont really understand the error, what is a signature?

I call this in the OnItemInserted="senduser"

below is the error

Compiler Error Message: BC30408: Method 'Protected Sub senduser(sender As Object, e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs)' does not have the same signature as delegate 'Delegate Sub FormViewInsertedEventHandler(sender As Object, e As System.Web.UI.WebControls.FormViewInsertedEventArgs)'.

Source Error:

 

Line 17:             <tr>
Line 18:                 <td>
Line 19:                     <asp:FormView ID="FormView1" runat="server" DataKeyNames="ID"
Line 20:                         DataSourceID="SqlDataSource1" OnItemInserted="senduser">
Line 21:                    
 

Protected Sub senduser(ByVal sender As Object, ByVal e As SqlDataSourceCommandEventArgs)
        e.Command.Parameters("@Openedby").Value = User.Identity.Name
    End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Juan_Barrera
Juan_Barrera
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bcoussens
bcoussens

ASKER

well didnt really help me at all just repeated the error i got in human terms,  i wish i didnt have to accept this answer but seems it is the only way to close question