Can anyone help make paging like this: If there are Total 23 pages then paging should be like this: [1]2[3]...[10][11][12]....23 The Center Pagin portion should be random number. I have made simple paging style but not like this How can i make paging style like this.....
If you know asp its as simple as getting the total pages then determine if you need to do this. <% Dim x, nPageCount, vPage nPageCount = objRs.PageCount vPage = nPageCount if nPageCount > 24 then x = 1 do until x = 5 response.write "<A href='mypage.asp?page=" & x & "'>" & x & "</A>" x = x + 1 loop response.write " ... " x = 1 do until x = 5 response.write "<A href='mypage.asp?page=" & vPage & "'>" & vPage & "</A>" vPage = vPage - 1 x = x + 1 loop Else ... regular pageing system here End if %> Code (markup): hope this helps.
the asp.net 2005 GridView is a godsend regarding paging through filter. Essentially it is all setup so you can pass in the datasource, and it is easily configured to page, sort, and filter