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

F

Fred Dag

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top