Dynamic paging in .net 2.0

Posted on 2007-03-27
Last Modified: 2011-10-03
Dynamic paging in 2.0
i have to display 3 images on first page and from the second page 6 images on each page.
how to do this in 2.0
i am using c# language.
Question by:dotsandcoms
  • 2

Expert Comment

ID: 18806035
 please give some more detail..

Author Comment

ID: 18806182
Actually i am developing website of product which i have to display product description and below that 3 Product images and from the second page 6 product images on each to perform this in 2.0
i am using c# language.
LVL 28

Accepted Solution

mmarinov earned 500 total points
ID: 18806209
Here is an example how you can do paging within repeater

to do your case, where are the lines

pgitems.PageSize = 25;
pgitems.CurrentPageIndex = PageNumber;

add condition like

int pageSize = 0;
pageSize = (PageNumber == 1) ? 3 : 6;
pgitems.PageSize = pageSize;


Expert Comment

ID: 18806240
So you have one start page where there will be 3 images then from next page there will be 6 images. this next page is a different aspx page or you are using some control on the start page itself to show the products using paging of the control.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction (All good things must come to an end ( original MySQL API ( has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all current…
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now