DetailsView & ObjectDataSource Update method

Discussion in 'ASP .Net Web Controls' started by Matt, May 25, 2006.

  1. Matt

    Matt Guest

    Do all the fields in the DetailsView need to be marked visible in order
    to be passed to the Update or Delete methods of the ObjectDataSource?

    I have a custom business object that has properties ApplicationId(Guid)
    and Timestamp(timestamp). I don't want the users to see these fields
    but they are required for the Update and Delete methods of the
    underlying custom data access object that gets called.

    If I mark these fields visible it works? Any thoughts?

    Thanks ~ Matt
    Matt, May 25, 2006
    #1
    1. Advertising

  2. Matt

    Matt Guest

    Found the answer:

    If the Visible property of a row field is set to false, the row is not
    displayed in the DetailsView control and the data for the row does not
    make a round trip to the client. If you want the data for a row that is
    not visible to make a round trip, add the field name to the
    DataKeyNames property.
    Matt, May 25, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    4,059
  2. Fred Dag
    Replies:
    0
    Views:
    1,666
    Fred Dag
    Sep 18, 2006
  3. kidders
    Replies:
    0
    Views:
    570
    kidders
    Jan 23, 2007
  4. =?Utf-8?B?UGhpbCBI?=

    Detailsview update method issue

    =?Utf-8?B?UGhpbCBI?=, Oct 9, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    495
    =?Utf-8?B?UGhpbCBI?=
    Oct 9, 2007
  5. David Thielen

    ObjectDataSource method as another ObjectDataSource

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    228
    Steven Cheng[MSFT]
    Mar 23, 2006
Loading...

Share This Page