Finding new record in DetailsView with ObjectDataSource

Discussion in 'ASP .Net Web Controls' started by Mike Baker, Jan 20, 2009.

  1. Mike Baker

    Mike Baker Guest


    I've been reading through 'DetailsView Insert' and 'DropdownList Datasource
    Dependency' threads. I have a similar issue but my case uses an
    ObjectDataSource for the DetailsView. What I want to do is position the
    DetailsView on new record after an insert. The data access layer does
    populate the object's new ID returned from the db. I have been looking at
    both the dvCustDetails_ItemInserted and at odsCustomer_Inserted events and I
    can't find the spot that contains my updated 'Customer' object. Can someone
    point it out for me?

    Mike Baker, Jan 20, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.