ObjectDataSource & FormView adding two extra paramaters to Update method giving error non-generic me

Discussion in 'ASP .Net' started by Fred Dag, Sep 18, 2006.

  1. Fred Dag

    Fred Dag Guest

    Hi,
    I have a FormView that uses a ObjectDataSource. It retreives data alright
    but when updating it gives a

    ObjectDataSource 'ObjectDataSourceCatalogueItem' could not find a
    non-generic method 'UpdateByCatalogueItemID' that has parameters:
    CatalogueItemTitle, CatalogueItemDescription, CatalogueItemImage,
    Original_CatalogueItemID, CatalogueItemID, CatalogueItemREFItemNumber,
    original_CatalogueItemREFItemNumber.

    where as the actual UpdateParameters looks like

    <UpdateParameters>
    <asp:parameter Name="CatalogueItemTitle" Type="String" />
    <asp:parameter Name="CatalogueItemDescription" Type="String"
    />
    <asp:parameter Name="CatalogueItemImage" Type="String" />
    <asp:parameter Name="CatalogueItemREFItemNumber"
    Type="String" />
    <asp:parameter Name="Original_CatalogueItemID" Type="Int32"
    />
    </UpdateParameters>

    Why is it adding "
    , CatalogueItemID, CatalogueItemREFItemNumber,
    original_CatalogueItemREFItemNumber.
    "

    onto the update parameter list? How can I remove them?

    Thanks in advance.
     
    Fred Dag, Sep 18, 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,220
    Steven Cheng[MSFT]
    Sep 14, 2005
  2. Replies:
    2
    Views:
    4,114
  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,618
    =?Utf-8?B?dHBhcmtzNjk=?=
    May 4, 2006
  4. Dennis
    Replies:
    0
    Views:
    1,178
    Dennis
    Jul 1, 2006
  5. rote
    Replies:
    0
    Views:
    337
Loading...

Share This Page