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 910199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:00:14+00:00 2026-05-15T17:00:14+00:00

Hey everybody, got an interesting question I think. I’ve got a Silverlight3 application which

  • 0

Hey everybody, got an interesting question I think. I’ve got a Silverlight3 application which is querying a SQL Server 2005 database asynchronously. However, some of the data sets the queries return are massive and so I’m looking into data pagination.

Goals:

1) Just in time data calls – I only want to query for page 3’s data when the user clicks to go to page 3.

2) I want a slider to control which page I’m on – SliderControl is SL3 with its movement binded to a stored procedure call (is my initial guess as to an approach).

3) Read ahead data as a label for the slider. So the slider will say “Page 1 of 50” or perhaps “Gant – Hart”. Some sort of indication as to where you are in the data without actually querying for all the data until the user drops the slider into position.

I’m almost positive that I need to do some sort of a query to get the total number of rows and some sort of bookmark data that the query will eventually return. Otherwise I don’t know how to split up the slider nor would I be able to do page labels (The gant to hart stuff).

Anyone have experience with this kind of thing? Thanks.

  • 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-15T17:00:14+00:00Added an answer on May 15, 2026 at 5:00 pm

    There are usually at least 2 separate lookups involved here, the first to get the pager information and a second to retrieve the data appropriate to the current page.

    The pager (slider) needs to know the total number results that would be returned if you weren’t doing paging. This is needed to show the pretty “Total # of Results” indicator for your use and to calculate how many total pages you’ve got. In your case you’re going to want to format a nice visual display of the pages for selection (determined by your desired records/page value) in your slider. That’s your first query; it should return just a single scalar int or long and you can calculate what you need for your slider display.

    The second results include the actual records to be displayed for a given page.

    Step 1 of 2 for a page of data is to run a query to filter and order your results by a primary key present within the data you’re returning, throwing the key values in a temp table with an AUTO_INCREMENT/IDENTITY field or getting the row number over for the results of a derived table. (Summary: 2 fields, 1 for sequence/1 for primary key to join in step 2).

    Step 2 of 2 is to join the key values with your tables which contain data, ordering by the sequence determined in Step 1, selecting only rows numbered (desired start row) to (desired end row) as determined by the page number and page size you’ve selected.

    A stored procedure is strongly advised to keep the data on the server during this operation while you’re having to examine more data than you really care to bring back to optimize bandwidth.

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

Sidebar

Related Questions

hey everybody... I'm running xampp test server on my system. I was wondering if
Hey everybody, this is what I have going on. I have two text files.
Hey I can't figure out an error I got. I had my App working
Hey everyone I am a newbie and would love some help. I got the
Hey guys I am making a terminal application using Swing and Apache Commons. I
Hey Im writing a launcher, in which Im building my own custom lockscreen. the
Hey guys I am new to android development, I am currently making an application.The
Hey everybody, I'm very confused about how to use two different Cell Types in
Hey everybody. So, I'm creating this kind of a social network script for a
Hey everybody, I was wondering where, or what is the methods used in the

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.