ObjectDataSource could not find a non-generic method 'Update' that has parameters

Last post 10-12-2007 5:59 AM by Tushar101. 2 replies.

Sort Posts:

  • ObjectDataSource could not find a non-generic method 'Update' that has parameters

    10-09-2007, 10:16 PM
    • Loading...
    • Tushar101
    • Joined on 07-03-2004, 6:03 PM
    • Posts 42

    Hi,

    I've spent months trying to solve this problem, using a Formview to enter/modify data connected to a SQL Server backend via an ObjectSource TableAdapter. After having another go tonight (an intense 6hrs+) I saw a post from the developers to say that this problem with original_{0} would be resolved in VWD Express 2005, but it didn't, even with the latest update. I've now downloaded VWD Express 2008 Beta 2 and I'm still getting the same problem. Have I missed something? I can display data but not modify it (get the above error). To say this is frustrating is an understatement.

    Default OldValuesParameterFormatString should be {0} now should it not, instead of original_{0}?

    Any help would be extremely appreciated.

    Thanks

    Tushar

  • Re: ObjectDataSource could not find a non-generic method 'Update' that has parameters

    10-10-2007, 3:25 PM
    Answer
    • Loading...
    • pkellner
    • Joined on 11-12-2004, 10:42 AM
    • San Jose, California
    • Posts 3,370
    • Moderator
      TrustedFriends-MVPs

    take a look at the parameters it wants in the error.  Usually the primary key will contain original_{primarykey}.  I would try either removing the OldValuesParameterFormatString  or do as you mention and set it to {0}.  If this doesn't help, post the actual error code with all the variable names in the error.

    Peter Kellner
    http://73rdstreet.com and blogging at
    http://PeterKellner.net
    MVP, ASP.NET
  • Re: ObjectDataSource could not find a non-generic method 'Update' that has parameters

    10-12-2007, 5:59 AM
    • Loading...
    • Tushar101
    • Joined on 07-03-2004, 6:03 PM
    • Posts 42

    thanks, Peter, that's very kind of you to offer to look at the code for me. I'll have another look at it, and if I hit another brick wall, then I might take you up on your offer!

    Thanks again 

    Tushar Cool
     

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter