I've added two date columns (as datetime, nullable) to the ads database and updated Ads.vb, Ads.xds, PostAds but I'm getting the following error on Search.aspx.vb
Exception Details: System.InvalidOperationException: ObjectDataSource 'AdSearchDataSource' could not find a non-generic method 'GetActiveAdsByQuery' that has parameters: recordLimit, categoryId, memberId, maxPrice, searchTerm, location, adType, adLevel,
dayRange, mustHaveImage, city.
Source Error:
Line 786: BrowsePanel.Visible = False
Line 787: ResultsPanel.Visible = True
Line 788: ResultsPanel.DataBind()
Line 789: Else
Line 790: ' if no search critieria were specified, show the regular browse category view (as on Default.aspx)
If (AdvancedSearch.AdType <> 0) Then
sb.Append("ad type = """ & CType(AdvancedSearch.AdType, AdType) & """ <br/>")
End If
If (AdvancedSearch.MustHavePhotos) Then
sb.Append("photo = """ & AdvancedSearch.MustHavePhotos & """ <br/>")
End If
If (AdvancedSearch.City.Length > 0) Then
sb.Append("city = """ & Server.HtmlEncode(AdvancedSearch.City) & """ <br/>")
End If
>>>>>>>>>Seems like there should be some reference to eventStart and eventEnd here>>>>>>>>>>
Does anyone know if this is the problem and if so, what goes in here? Or, maybe I'm looking in the wrong
place altogether. Would really appreciate any help. My site is up but search isn't working at all. Thanks.
redwoodbev
Member
29 Points
166 Posts
Error in Search.aspx.vb after adding date columns in database
Feb 02, 2010 10:29 AM|LINK
I've added two date columns (as datetime, nullable) to the ads database and updated Ads.vb, Ads.xds, PostAds but I'm getting the following error on Search.aspx.vb
Exception Details: System.InvalidOperationException: ObjectDataSource 'AdSearchDataSource' could not find a non-generic method 'GetActiveAdsByQuery' that has parameters: recordLimit, categoryId, memberId, maxPrice, searchTerm, location, adType, adLevel, dayRange, mustHaveImage, city.
Source Error: