Sunday, July 5, 2009

Paging and Sorting ListViews with ASP.NET MVC and jQuery

Introduction

This article provides a simple example of using jQuery along with the jQuery tablesorter and tablesorter.pager plug-ins to provide sorting and paging support for a listview within the context of an ASP.NET MVC application. JQuery has partnered with Microsoft and is now integrated within the IDE to include the availability of intellisense support.

1.gif

Figure 1: the NerdDinner MVC Application Modified with jQuery's Tablesorter and Pager

2.gif

Figure 2: The live NerdDinner website with the original list of upcoming dinners

I used the NerdDinner tutorial project as the basis for this project: http://www.nerddinner.com. The original code and a preview of the pending MVC book authored by Hanselman, Guthrie, et al is available for download if you'd care to have a look; at present there does not appear to be a VB version of the project for those interested in that:


See full detail: http://www.c-sharpcorner.com/UploadFile/scottlysle/PageSortMVCinCsharp03192009083337AM/PageSortMVCinCsharp.aspx

No comments: