Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8207507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:01:05+00:00 2026-06-07T09:01:05+00:00

I have a FormView used to edit records but when the user presses the

  • 0

I have a FormView used to edit records but when the user presses the Button, it also needs to do some back-end stuff in the code-behind. For this I need to pass the ID of the record.

Currently this is my code in the page:

<asp:LinkButton ID="savebtn" runat="server" CausesValidation="True"   
                    CommandName="Update" Text="Save Changes" 
                    OnClick="setProcessProgress"  CommandArgument='<%# Eval("id") %>'  />

And this is a stripped-down version of my code-behind:

protected void setProcessProgress(object sender, FormViewCommandEventArgs e)
        {
           if (e.CommandName == "Update")
              ID_p =   Int32.Parse((string)e.CommandArgument);
        }

I’m getting the No overload for 'setProcessProgress' matches delegate 'System.EventHandler'

I tried changing the EventArgs to CommandEventArgs and it didn’t work either.
If I use OnCommand instead of OnClick it just doesn’t call setProcessProgress. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:01:07+00:00Added an answer on June 7, 2026 at 9:01 am

    According to the MSDN Documentation on FormViewCommandEventArgs.

    The ItemCommand event is raised when a button within the FormView
    control is clicked. This allows you to provide an event-handling
    method that performs a custom routine whenever this event occurs.

    Buttons within a FormView control can also invoke some of the built-in
    functionality of the control. To perform one of these operations, set
    the CommandName property of a button to one of the values in the
    following table.

    The event is not assigned to the Button’s OnClick event, it is actually assigned to the FormViews ItemCommand Event

    i.e

     <asp:FormView ID="FormView1" runat="server" 
            onitemcommand="setProcessProgress">
    
    
    <asp:LinkButton ID="savebtn" runat="server" CausesValidation="True"    
                    CommandName="Update" Text="Save Changes"  
                    CommandArgument='<%# Eval("id") %>'  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a DetailsView (used to be a Formview, but that is a
I have a FormView from which another user control is launched. The FormView loads
I have a list of input type radio buttons in formview (edit mode) and
I have an SqlDataSource attached to a FormView which is used for inserting/updating, which
I have a Web User Control containing a FormView . The formview shows details
In my asp page I have a FormView which is used to display and
I'm using a FormView to edit my business objects. I don't have any problem
I have a FormView which handles such events as save and cancel. I also
I have a FormView and I need to access some Divs and other controls
I have a FormView control in an ASP.NET 2.0 app. I've got the database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.