Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2010, 04:22 PM
Authorized User
 
Join Date: Mar 2010
Posts: 65
Thanks: 6
Thanked 0 Times in 0 Posts
Default Paging for ASP Table control.

I am creating a custom built Table class control and retrieving records from Database. I want to create paging for the Table control.
- I have tried lots of different ways, but didn't work.

-In my project i am using only ASP Table control, so i dont want to use any data bound controls for paging.

-i tried using Paged data source.But i think the Table control should have the Data source property for that. So iam confused. Can somebody suggest me some ideas on how to create Paging since i am new to ASP.
 
Old May 6th, 2010, 02:59 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Paging can occur on two levels, and I believe you've identified them. One technique is to return ALL data and use the data bound control to limit which ones are displayed. This is a very heavy technique especially if you have lots of records, but it's the way tools like GridViews manage, I believe. The alternative is to manage this from the data source control and only retrieve the specific rows you want.

Since you want to handle this in the data source end (which is generally the better idea) you need to look at the SQL syntax of your database MS SQL, MySQL, whatever and determine how to break a query into ranges. I believe they all support paging, but it's not part of the SQL standard, so each database has its own proprietary implementation.
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging in gridview control VadimZ ASP.NET 2.0 Professional 8 February 17th, 2010 02:12 AM
Paging with datalist control amit.jagtap ASP.NET 2.0 Basics 1 August 13th, 2007 03:12 AM
database paging using asp table+ oledbdataadapter yamensaleh ASP.NET 2.0 Basics 0 January 27th, 2007 10:09 AM
Table control using ASP.Net lily611 General .NET 2 July 30th, 2004 10:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.