Closed Ciwan1859 closed 6 years ago
Yes, this is possible with custom routes. See http://demo.taiga.nl/mvcpaging/SimplePaging. The route configuration for this page is:
routes.MapRoute("SimplePaging", "SimplePaging/{page}",
new { controller = "Paging", action = "Index", page = UrlParameter.Optional });
For the scenario above, you could probably use something like:
routes.MapRoute("DefaultPaged", "{controller}/{action}/page/{page}",
new { controller = "Home", action = "Index", page = 1 }, // Parameter defaults
Hi
I have integrated your code and paging works, but the URLs are not pretty URLs. What I would like them to be is:
And so on. Is this possible? Right now I'm getting:
Any help would be greatly appreciated.