Solved

Dynamic paging in .net 2.0

Posted on 2007-03-27
4
247 Views
Last Modified: 2011-10-03
Dynamic paging in asp.net 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 asp.net 2.0
i am using c# language.
0
Comment
Question by:dotsandcoms
  • 2
4 Comments
 
LVL 6

Expert Comment

by:Niraj_Singh
ID: 18806035
hi,
 please give some more detail..
0
 

Author Comment

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

Accepted Solution

by:
mmarinov earned 500 total points
ID: 18806209
Here is an example how you can do paging within repeater
http://www.developer.com/net/asp/article.php/3646011

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;

Regards
Martin
0
 
LVL 6

Expert Comment

by:Niraj_Singh
ID: 18806240
hi,
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.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
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.

713 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