Quote:
quote:Originally posted by Lee Dumond
Can you post your whole ObjectDataSource?
|
Yes, I am including it below.
Also I wanted to mention that I already tried setting OldValuesParameterFormatString={0} (in the properties window) and still not working. (Here is why I mentioned this:
http://msdn.microsoft.com/en-us/library/bb332381.aspx)
Here is my ObjectDataSource:
<asp:ObjectDataSource ID="objCurrProduct" runat="server" DeleteMethod="DeleteProduct"
SelectMethod="GetProductByID" TypeName="MB.TheBeerHouse.BLL.Store.Product" InsertMethod="InsertProduct" UpdateMethod="UpdateProduct">
<DeleteParameters>
<asp:Parameter Name="id" Type="Int32" />
</DeleteParameters>
<SelectParameters>
<asp:QueryStringParameter Name="productID" QueryStringField="ID" Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="departmentID" Type="Int32" />
<asp:Parameter Name="title" Type="String" />
<asp:Parameter Name="description" Type="String" />
<asp:Parameter Name="unitCost" Type="Decimal" />
<asp:Parameter Name="sku" Type="String" />
<asp:Parameter Name="unitPrice" Type="Decimal" />
<asp:Parameter Name="discountPercentage" Type="Int32" />
<asp:Parameter Name="unitsInStock" Type="Int32" />
<asp:Parameter Name="smallImageUrl" Type="String" />
<asp:Parameter Name="fullImageUrl" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="id" Type="Int32" />
<asp:Parameter Name="departmentID" Type="Int32" />
<asp:Parameter Name="title" Type="String" />
<asp:Parameter Name="description" Type="String" />
<asp:Parameter Name="unitCost" Type="Decimal" /> <asp:Parameter Name="sku" Type="String" />
<asp:Parameter Name="unitPrice" Type="Decimal" />
<asp:Parameter Name="discountPercentage" Type="Int32" />
<asp:Parameter Name="unitsInStock" Type="Int32" />
<asp:Parameter Name="smallImageUrl" Type="String" />
<asp:Parameter Name="fullImageUrl" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
Here is the error one more time:
ObjectDataSource 'objCurrProduct' could not find a non-generic method 'UpdateProduct' that has parameters: ID, DepartmentID, Title, Description, UnitCost, SKU, UnitPrice, DiscountPercentage, UnitsInStock, SmallImageUrl, FullImageUrl
LAM.