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?
Add a comment
|
2 Answers
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.
1 Comment
I went through that paging chapter. They are listing certain number of records from database. My scenario is different. I have Results Page with some records listed. If the user selects a particular record I will take it to the edit page with data loaded in textboxes. In this page I have buttons prev,next,last,first through which the user can navigate other records of search results in Edit mode. Please let me know some solution for this ! Thanks !
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