Solved

Dynamic paging in .net 2.0

Posted on 2007-03-27
4
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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 …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

617 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