Detailsview update method issue

Discussion in 'ASP .Net' started by =?Utf-8?B?UGhpbCBI?=, Oct 9, 2007.

  1. I have a detailsview control on an ASP.NET 2.0 page which is bound to methods
    in a business object through an ObjectDataSource. All of the bound methods
    work correctly, but I have a slight problem with the update method.

    Unless the primary key value is visible and editable (i.e. not readonly) in
    the detailsview on the page, the Update action won't pass the value to my
    method, so the record is not updated. Of course I don't want the end user to
    see or edit the primary key. How can I get around this situation?


    TIA for your time and expertise.
    --
    Phil Hegedusich
    Senior P/A
    IIMAK
    ----
    A skeleton walks into a bar and says, "I need a beer and a mop."
     
    =?Utf-8?B?UGhpbCBI?=, Oct 9, 2007
    #1
    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. =?Utf-8?B?Y2xpY2tvbg==?=

    Update Databound controls within a DetailsView TemplateField

    =?Utf-8?B?Y2xpY2tvbg==?=, Mar 23, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    6,811
    =?Utf-8?B?Y2xpY2tvbg==?=
    Mar 23, 2006
  2. jens Jensen
    Replies:
    5
    Views:
    7,042
  3. Replies:
    1
    Views:
    1,580
    Vlad Iliescu
    Apr 26, 2006
  4. Feege
    Replies:
    0
    Views:
    471
    Feege
    Dec 20, 2005
  5. Matt

    DetailsView & ObjectDataSource Update method

    Matt, May 25, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    293
Loading...

Share This Page