karthi
karthi

Reputation:

ASP.net MVC Paging

I have textboxes loaded with data on my ASP.NET MVC page. If the user clicks the Next button I need to load the textboxes with the relevant data. Similarly I have Next, Prev and Last buttons for record navigation. I have no idea on how to implement this. If it is JQuery how I can implement it? How do I implement it in ASP.NET MVC?

Upvotes: 1

Views: 430

Answers (2)

George Stocker
George Stocker

Reputation: 57907

The good news is that there is a complete example of this in the Nerddinner ASP.NET MVC Walkthrough (pg 118-127).


(source: barnesandnoble.com)

I also recommend the book that this is the sample chapter of: Professional ASP.NET MVC 1.0 by Wrox Press.

Upvotes: 5

Rony
Rony

Reputation: 9511

change your model to implement a PagedList and then bind the each item in the result to a textbox, this can be done in Ajax using Jquery too

Upvotes: 1

Related Questions