One good approach to writing better pagingcode is to use stored procedures.
一个写出更好的分页代码的办法是使用存储过程。
2
With the improvements in ASP.NET 2.0, this code can be significantly reduced to produce a data-filled grid with full paging, sorting, and editing features.