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

ASP.NET

Avatar of undefined
Last Comment
bcoussens
ASKER CERTIFIED SOLUTION
Avatar of Juan_Barrera
Juan_Barrera
Flag of New Zealand image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
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
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo