Recently Viewed Products Control is not working correctly
Posted: Fri Mar 14, 2008 11:42 am
Hi,
I have added the Recently Viewed Products control which is ConLib/RecentlyViewd.ascx. However the very recent product that I viewed shows up at the very bottom of the list not at the top. In the code behind the call to the datasource:
PageViewDataSource.GetRecentlyViewedProducts(userId, this.MaxItems, 0, "ActivityDate DESC")
is supposedly sorting the results descending by ActivityDate. I checked the database, the activity dates are being updated as pages are viewed however the last viewed page is showing up at the bottom.
Does this control work properly? Is anyone using it?
Thanks,
Ayilmaz
I have added the Recently Viewed Products control which is ConLib/RecentlyViewd.ascx. However the very recent product that I viewed shows up at the very bottom of the list not at the top. In the code behind the call to the datasource:
PageViewDataSource.GetRecentlyViewedProducts(userId, this.MaxItems, 0, "ActivityDate DESC")
is supposedly sorting the results descending by ActivityDate. I checked the database, the activity dates are being updated as pages are viewed however the last viewed page is showing up at the bottom.
Does this control work properly? Is anyone using it?
Thanks,
Ayilmaz