Best way in my opinion is to maken the paging from the controller so let asp.net handling this.
This is a nice (working) example
Example asp.net mvc pagination[
^]
Also if you really want to do this client sided than you can have a look at Angular I really love those features
Angular example[
^]
A Fiddle example with javascript:
pagination example
I would definitely not running a pagination with jquery and hard coded paging lists. 5, 10, 25, 50, "All" is never going to change when there are more than 50 in your case. That makes the paging useless.