Solved

Dynamic paging in .net 2.0

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
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 custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

706 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

20 Experts available now in Live!

Get 1:1 Help Now