Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any page navigation helpers for ASP.NET MVC?

Are there any html helpers for page navigation. eg. if i have 1000 records to display, i want to display the Previous 1 2 3 4 ... etc Next link stuff under the filtered collection.

Anyone know of anything out there?

like image 501
Pure.Krome Avatar asked Oct 28 '08 04:10

Pure.Krome


People also ask

How many helpers are there in MVC?

There are three types of built-in HTML helpers offered by ASP.NET.

What is templated HTML helpers in MVC?

It goes through the every property in the model for displaying object. @Html. DisplayFor(modal => modal) :- This Display template helper is used with strongly typed views , if model has properties which return complex objects then this template helper is very useful.


1 Answers

If you are creating a table of data from JSON data, I highly recommend the YUI (Yahoo UI Library) DataTable component (http://developer.yahoo.com/yui/datatable/). It does paging very well and you have the option of returning the whole record set to start with and then paging through that all client-side or returning a paged set from the server.

Probably won't fit your scenario, but just thought I'd mention it.

like image 99
NathanD Avatar answered Nov 15 '22 11:11

NathanD