Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 19th, 2006, 07:28 AM
Registered User
 
Join Date: Nov 2006
Location: hyderabad, andhra pradesh, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nazia
Default Page wise display of data in a shopping cart

Hi !
I am using coldfusion and html,javascript to build a shoppingcart,
I need to display the products on the page along with the page numbers which act as links.
Just like the search pages in google have links for page numbers


Thnx!
nazia

Nazia Banu
Reply With Quote
  #2 (permalink)  
Old December 22nd, 2006, 04:03 PM
Friend of Wrox
 
Join Date: Aug 2004
Location: Orange County, CA, USA.
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are a number of ways to do this. I like creating a data set on the sql database tied to the query of the user. So for example if you send a cookie or some sort of identifier to your user. Then the users cookie is tied to a table that has the results that the user requested. For example if they want to see all the smiths in your database. The query results in 42 smiths ordered alphabetically by first name. When they first run this query the record id's for the 42 smits are stored in a table tied to that user. You display the first 10 smiths. They click on next, your code goes to the temporary data to get the next set of ten rows. If they click on a link similar to google where they want the fifth batch of 10 rows. They get the last two smiths again from the tempory results set tied to that user. When they log off or after a period of time. You delete the query result data from the table.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending data from the Chp. 9 shopping cart cavanami BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 6 October 24th, 2007 02:08 AM
Shopping Cart seannie ASP.NET 2.0 Basics 0 December 12th, 2006 10:28 AM
session in shopping cart page Jane Siu Beginning PHP 1 November 22nd, 2006 01:49 AM
C# shopping cart franknguyen ASP.NET 1.x and 2.0 Application Design 1 January 5th, 2004 10:54 AM



All times are GMT -4. The time now is 05:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.