Gentle.Net: Inserts from an ObjectDataSource?

Discussion in 'ASP .Net' started by HockeyFan, Oct 9, 2007.

  1. HockeyFan

    HockeyFan Guest

    I've got Gentle.Net objects bound to an ObjectDataSource. I have a
    grid that comes up fine. I then have a DetailView that is bound to
    another ObjectDataSource. When I try to update from the DetailView, I
    can put a break point in the ItemInserting and/or ItemUpdating
    handlers and step through and watch when the object is set. Each of
    the object properties, minus the ID field, are set. The ID field is
    left to zero, as this is the default. I never touch that. However,
    stepping through I get the following error:

    The 'Id" property on the type specified by the DataObjectTypeName
    property in the ObjectDataSource odsCaseNoteDetail is readonly and its
    value cannot be set.

    I'm not trying to set that value. What's going on and how do some of
    you work with Gentle.Net and an ObjectDataSource?
    HockeyFan, 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. Harlan Messinger

    ASP.NET inserts trailing slash in tag

    Harlan Messinger, Feb 18, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    455
    Harlan Messinger
    Feb 19, 2008
  2. Daniel

    Major NEWBIE question - be gentle

    Daniel, Dec 30, 2005, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    113
    Daniel
    Dec 30, 2005
  3. David Thielen

    ObjectDataSource method as another ObjectDataSource

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    225
    Steven Cheng[MSFT]
    Mar 23, 2006
  4. Bea Martin

    newbie... be gentle

    Bea Martin, Oct 7, 2007, in forum: Ruby
    Replies:
    2
    Views:
    115
    7stud --
    Oct 7, 2007
  5. Larry W. Virden
    Replies:
    13
    Views:
    178
    Tad J McClellan
    Jan 10, 2009
Loading...

Share This Page