Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

does not have the same signature as delegate 'Delegate Sub

Avatar of bcoussens
bcoussens asked on
2 Comments1 Solution760 ViewsLast Modified:
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
Avatar of Juan_Barrera
Juan_BarreraFlag of New Zealand image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers