:
Figure A
Tip: Data for the previous study of a software << network look >>, a very good data acquisition software, collect a game forum user feedback data.
So want to make their own web site to do this page specific how should be implemented? It's simple, look.
Step one, add a reference (you will attach a DLL later, plus the source code)
Step two, convert data to ipagedlist<t> type
Figure II
Step three: Add a reinforcing type, adding a paging reference, adding a pagination style (style 22)! For your choice, use the Barstyle enumeration to choose a style)
Might
PS: Parameter description
This . Html to get the path stitching other pages of the URL
Viewdata.model to get the current page, the total number of pages, for the raw ingredients page list
barstyle.xxxx is a pagination control style, 22 kinds, there is always a suitable for you
5 The number of bars displayed before and after the current page, one, the current page is page 8th, and 5 items are displayed before and after
This control is not written by me, but is optimized on the original basis and is optimized as follows:
1. Change the false page to true pagination
2. Remove redundant code
3. Optimizing Code Logic
4. Fix some bugs
Click to download the source code
Extract Password: 960r
MVC Paging Control