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