I’m hoping Troy Goode or someone else who has done the same thing can help out here. I am relatively new to ASP.NET MVC.
I have an ASP.NET MVC3 app with a View where I have implemented two PagedList controls, each displaying a different source of information.
Does the PagedList control provide a means of tracking the current page number of other PagedLists on the View? So for example, if I had:
PagedList1 (currently on page 1 of 10)
PagedList2 (currently on page 4 of 10)
and I changed the page on PagedList1, PagedList2 would remain on page 4 after the View reloads.
I have considered using Session variables but was wondering if there is a more elegant solution.
Thank you.
I finally figured out a way.
Model:
View:
Under search result table 1:
Under search result table 2:
Thanks for looking.