ObjectDataSource could not find a non-generic method that has parameters ... error yet again

Discussion in 'ASP .Net' started by Dennis, Jul 1, 2006.

  1. Dennis

    Dennis Guest

    I created a table adapter on an xsd that uses 4 basic stored procedures
    for select, update, insert, delete. Then I created an aspx page with
    an object data source that uses the table adapter and a formview that
    is bound to the datasource. Whenever I try to delete a record I get
    the error:

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

    And it lists 4 parameters, the last two of which are duplicates of the
    first two. The primary key of the table is 2 columns so the delete sp
    takes two parameters, one for each column. So why is it looking for 4
    parameters? And how to I make it so it only looks for two parameters?

    Thanks,
    Dennis
    Dennis, Jul 1, 2006
    #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. Dotnet Gruven
    Replies:
    1
    Views:
    5,181
    Steven Cheng[MSFT]
    Sep 14, 2005
  2. Replies:
    2
    Views:
    4,071
  3. =?Utf-8?B?dHBhcmtzNjk=?=

    ObjectDataSource could not find a non-generic method error

    =?Utf-8?B?dHBhcmtzNjk=?=, Apr 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    14,558
    =?Utf-8?B?dHBhcmtzNjk=?=
    May 4, 2006
  4. Cirene
    Replies:
    0
    Views:
    1,274
    Cirene
    Sep 17, 2008
  5. tparks69
    Replies:
    0
    Views:
    142
    tparks69
    Apr 27, 2006
Loading...

Share This Page