Solved

Dynamic paging in .net 2.0

Posted on 2007-03-27
4
241 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.net and XML report from SCCM 5 23
Call windows 10 virtual keyboard from windows forms app 2 35
start a process from a service 3 22
asp enable view state 1 24
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

770 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