Currently, in most control libraries, the pager control is bound with the grid. Although it has the design advantages, it is not convenient to use pager separately. I found some source code on the Internet, but I was not satisfied with it. I finally spent a day modifying the code to implement the basic required functions and share them with you.
The pager controls all know what they are,CodeThere are detailed instructions. Note the following:
1. The Goto function has been deliberately canceled because the implementation is meaningless to actual operations;
2. A style sheet is required for use with the pager control. You can refer to and modify the most basic style sheet in the attachment;
3. All style names are fixed and cannot be modified. Modifying style names will only get messy. Of course, style names are randomly placed in any CSS file;
4. You can see the final appearance of the pager control during design, which is relatively convenient.
Source code download: http://files.cnblogs.com/Michael_z/Pager.rar