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 6963513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:48:07+00:00 2026-05-27T15:48:07+00:00

Ahoy! I am using an ASP.NET GridView control bound to an ObjectDataSource: <asp:ObjectDataSource ID=Things

  • 0

Ahoy!

I am using an ASP.NET GridView control bound to an ObjectDataSource:

<asp:ObjectDataSource ID="Things" runat="server"
    TypeName="BLL.Thing"
    UpdateMethod="UpdateThing"
    OnUpdating="Things_Updating"
    OnUpdated="Things_Updated">
    <UpdateParameters>
        <asp:SessionParameter
            Name="userContext"
            SessionField="UserContext"
            Type="Object" />
        <asp:Parameter Name="thing" Type="Object" />
    </UpdateParameters>
</asp:ObjectDataSource>

Clicking on an ImageButton control with CommandName=”Update” causes the specified OnUpdating event to occur, but not the specified UpdateMethod or the OnUpdated event.

<EditItemTemplate>
    <asp:ImageButton ID="ImageButton_Save" runat="server"
        CommandName="Update"
        SkinID="Save"
        CausesValidation="false"
        CommandArgument='<%# Eval("Id") %>' />
    <asp:ImageButton ID="ImageButton_Cancel" runat="server"
        CommandName="Cancel"
        SkinID="Cancel"
        CausesValidation="false" />
</EditItemTemplate>

The input parameters are defined in the OnUpdating event like so:

protected void Things_Updating(object sender, ObjectDataSourceMethodEventArgs e)
{
    e.InputParameters["thing"] = _theThing;
}

No exception is thrown. The page just posts back with the EditItemTemplate controls still showing. I can put breakpoints all over the place, but the trail stops at the end of Things_Updating. It seems that some exception is happening which is not handled or caught by the debugger. Is there a way to open the hood and see what ASP.NET is doing (or failing to do)?

Thanks in advance!

  • 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-05-27T15:48:08+00:00Added an answer on May 27, 2026 at 3:48 pm

    Does BLL.Thing.UpdateThing() execute? This should occur after Things.Updating and be easily debug-able. Also if there is something causing an exception, that is probably it.

    Edit:

    Try adding the parameter in a handler for GridView.RowUpdating instead of ObjectDataSource.Updating. That is how I usually do it. I think you need to get the DataSourceView to modify the update parameters in the ObjectDataSource‘s event. (See: ObjectDataSource Gridview Insert Fails W/ Empty Values Dictionary)

    protected void gridThings_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        e.NewValues.Add("thing", _theThing);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ahoy, I'm working on an OpenGL ES based game for Android using the NDK.
Ahoy hoy everyone :) Here is a list of links. You will need it
Ahoy, I'd like to mount a virtual drive myself on Windows XP, I guess
I have an LPTSTR for a file path, i.e. C:\Program Files\Ahoy . I would
I've been using heavily Prototype's way of defining classes and subclasses: // properties are
Ahoy! I was wondering if there's a way to configure eclipse not to open
Ahoy Stack Overflow! This be mai first post... I'm attempting to identify users with
Ahoy all! Long story short with this one if you don't mind lending a
import random secret = random.randint (1,99) guess = 0 tries = 0 print (AHOY!
We've got a system (MS SQL 2008 R2-based) that has a number of input

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.