473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP.NET custom paging with next link

hello friends, how ru all

I want to create a custom paging logic in ASP.NET with a next link for
example if i have 100 pages record so i want to show 6 pages link on page one
and next link

like that

1 2 3 4 5 6 <Next>

so pls tell me how can i do this in ASP.NET.
Thanks
Nov 19 '05 #1
2 1774
PageSize="6"

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"asad" <as**@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
hello friends, how ru all

I want to create a custom paging logic in ASP.NET with a next link for
example if i have 100 pages record so i want to show 6 pages link on page one
and next link

like that

1 2 3 4 5 6 <Next> so pls tell me how can i do this in ASP.NET.
Thanks

Nov 19 '05 #2
The DataGrid supports three types of paging:

1- Default paging with default navigation buttons: as Juan pointed out in
another repsonse you can use the pageSize attribute.

2- Default paging with custom navigation controls: for which I have a
sample at this link http://www.societopia.net/samples/dataGrid_3c.aspx

3- Custom paging: where you turn on AllowCustomPaging="True" and implement
your own navigation as this example from the MSDN is doing:
http://msdn.microsoft.com/library/de...bformspage.asp

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"asad" wrote:
hello friends, how ru all

I want to create a custom paging logic in ASP.NET with a next link for
example if i have 100 pages record so i want to show 6 pages link on page one
and next link

like that

1 2 3 4 5 6 <Next>

so pls tell me how can i do this in ASP.NET.
Thanks

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark | last post by:
I need some advice on how to acheive the desired result of my custom page link generation. The datagrid 'built-in' page navigation only allows either the 'Prev/Next' or the page numbers. ...
0
by: Stephen | last post by:
This is a real brain-teaser and i'd really appreciate it if someone can try and understand what im trying to do and give me a few pointers or ideas to help me work out my problem. Im basically...
0
by: anon | last post by:
Hi All, tried implementing the custom paging solution from 4 guys from rolla...however the pagecount in my implementation always returns one, so the postback gives an error asying"CurrentPageIndex...
3
by: Clint | last post by:
Hi, I am trying to implement the custom paging in the datalist in this format: << Prev 1,2,3,4,5 Next >>. Does anyone knows how to do this. Thanks in advance. Clint
2
by: ager | last post by:
Greetings, I have a problem that I am trying to work through. Any help would be appreciated. I have an asp.net application that uses framesets. It has a banner frame, contents frame, and a...
0
by: richard | last post by:
OK, Im finished pulling my hair out and now I need help. I have created a VB class file for my custom paging, in it I create a table with 2 rows, in the rows I have linkbuttons for first page,...
3
osward
by: osward | last post by:
Hi, everyone, I had managed to make use of the date link from a simple calendar script to my query table. When I click on the date's link or Prev and Next Month link, The table first row will be...
2
by: wallconor | last post by:
Hi, I am having a problem using Dreamweaver CS3 standard recordset paging behavior. It doesn’t seem to work when I pass parameter values from a FORM on my search page, to the recordset on my...
4
by: pupilstuff | last post by:
hi guys i just want to do paging like 1 2 3 4 5 next previous 6 7 8 9 10 next i got solution at http://amitkumarmca04.blogspot.com/2009/03/custom-paging-in-grid-view-control.html but i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.