ASP.NET custom paging with next link

G

Guest

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
 
J

Juan T. Llibre

PageSize="6"




asad said:
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>
 
G

Guest

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/d...ghdisplayingdatainlistboxesonwebformspage.asp
 
Joined
Sep 18, 2008
Messages
1
Reaction score
0
thank you

I was looking for a similar solution.
apart from this can anyone help me how in the following issue.
I am using custom paging and when i select and view details of items in the (say page 2)second or more pages, and when i click back button I am coming back to the first page of the paging instead of page 2, i want to come back to the same page within the the paging ie say page 2.

can any one help me out on this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top