Last post Nov 12, 2009 02:45 PM by redwoodbev
Nov 01, 2009 12:58 AM|redwoodbev|LINK
Hi, I'm getting the following error when trying to edit an existing ad. "ObjectDataSource 'AdDataSource' could not find a non-generic method 'UpdateAd' that has parameters: original_Id, memberId, Title, Description, URL, Price, Location, isRelisting."
Has anyone seen this, or have any idea where I should look for the problem? Thanks.
Nov 01, 2009 11:21 AM|darkknight187|LINK
Yes, You added or removed one of the columns.
For example, by default there's no column for Phone Number, and if you added it to all update sections but one,
it will error like that.
The sections are:
Stored procedure UpdateAd,
(I like to do it manually, by right clicking and choosing view code)
There's two updateAd sections.
App_Code/BLL/Ads.vb again UpdateAd Section.
And the editAd.aspx page, needs the textbox, or whatever you used for the new column.
It also needs the entry down at the bottom of EditAd.aspx page.
Just copy how the others were done.
Nov 12, 2009 02:45 PM|redwoodbev|LINK
Thank you. Yes, when I added the Column for City I forgot to make the changes in EditAd. I went in and added City to EditAds and everything is working now. You pointed me in the right direction. Thanks again.