Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

PagedListPager customise paging links

$
0
0

I'm using the following package to do paging in ASP.NET MVC

https://github.com/TroyGoode/PagedList

This is wokring great, however I'd like to be able to add a extra HTML5 data attribute to the pager links. Simply which contains the page number of the link.

For example:

<a href="admin/demo/userlist" data-page-no="1">1</a> <a href="admin/demo/userlist" data-page-no="2">2</a> etc etc

But I'm struggling to do this and can only get the page number into the URL.

Can anyone help? I would have thought this would have been a common and useful feature.

Thanks


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>