Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6950781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:08:05+00:00 2026-05-27T14:08:05+00:00

I have just uploaded the following article to codeproject: http://www.codeproject.com/KB/webforms/efficientpagingrepeater.aspx Basically it is using

  • 0

I have just uploaded the following article to codeproject:

http://www.codeproject.com/KB/webforms/efficientpagingrepeater.aspx

Basically it is using Repeater, SQL Server with the ROW_NUMBER() OVER statement and a custom pager.

I would like to extend the pager so that it can be used multiple times on a single page and also allow previous / next buttons. I am unsure how to do that – can anybody provide suggestions / some code modifications?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:08:07+00:00Added an answer on May 27, 2026 at 2:08 pm

    CP hasn’t posted the article yet, so I cannot comment on that. I can say that just about every DAL tool (EF, NH, AR, Massive, Dapper.Net, Simple.Data) all have paging built in. so hooking up paging to a repeater should not be a problem at all.

    If the article is referring to a webforms server control that pages data, I would avoid it at all costs. data access should not be managed by UI components. and using any of the various DAL listed above, it’s very simple to access the database using code, instead of drag-n-drop controls.

    to get db paging in place you need 3 inputs and 2 outputs
    inputs

    1. sql query & parameters
    2. starting point (page or page index)
    3. max # of records (page size)

    outputs

    1. current page of results
    2. total number of records

    using the total number of records and the page size you can calculate the total number of pages.

    var pages = total records / page size + (total records % page size > 0 ? 1 : 0);
    

    with the page of results, current page & total number of pages you can build the UI layout

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just uploaded an image to imageshack using their API and I am
I have just uploaded my published application files to my web server but I
I have a website that I've just uploaded onto the Internet. When I browse
I have a working copy of asp.net mvc site locally. I just uploaded the
Have just started using Google Chrome , and noticed in parts of our site,
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have just started playing with ASP.NET MVC and have stumbled over the following situation.
I just started using the jquery swfupload plugin and I have everything working besides
I have the following platforms block in my config.xml, but when uploaded to the
I have been getting the following error when I uploaded to a live server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.