Hi,
I have the following scenario - A user logs in to the site using a tourname, once logged in - all the listings are then stored in a session for the tour he logs in. Each listing has an ID. Upon logged in, he sees all the listings (thumbnails) in a page..then can click on each listing to see the details in a next page. In that details page, I have a Next and Previous button so they can navigate through the listing details one by one..Is there a way to use a LINQ query to get a next or previous ID based on the Current ID.
So, TourSession.CurrentListings has all the listings....When a user logs in with a tour, the ID are like this in session..
TourSession.CurrentListings[0].ID = 1
TourSession.CurrentListings[1].ID = 3
TourSession.CurrentListings[2].ID = 4
TourSession.CurrentListings[3].ID = 6
TourSession.CurrentListings[4].ID = 9
So, if a user for example is viewing the details of ID = 3, h ...
Go to the complete details ...