Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Links Database Forum

» Database Journal Home
» Database Articles
» Database Tutorials
MS SQL
Oracle
DB2
MS Access
MySQL
» RESOURCES
Database Tools
SQL Scripts & Samples
Links
» Database Forum
» Sitemap
Free Newsletters:
DatabaseDaily  
News Via RSS Feed


follow us on Twitter
Database Journal |DBA Support |SQLCourse |SQLCourse2
 

Featured Database Articles

Database News

Posted Jan 27, 2004

ASP.NET Database Paging Sample Code

By DatabaseJournal.com Staff

[From ASP 101]

Here's an ASP.NET version of our classic "Database Paging" script. While paging through query results is much easier in ASP.NET then it was in classic ASP, it never hurts to have some sample code to take a look at...

There are two types of paging supported by ASP.NET's DataGrid control: default paging and custom paging. This sample illustrates default paging. Of the two types, default paging is much simpler, but it's also less efficient. The reason for this is that the paging is performed on the web server and not at the DB. This results in every record in the table being retrieved for each request even though only the records on the current page are shown. For small tables, the difference isn't all that noticable, but as your table size increases, the performance will decrease and the resources required will increase.

The article continues at http://www.asp101.com/samples/db_paging_aspx.asp



Database News Archives

Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 




Latest Forum Threads
Database News Forum
Topic By Replies Updated
Efficient SQL Server Indexing by Design lcole 0 April 30th, 12:38 PM
Mine Oracle Database, SQL Server and Other Databases with Monarch Data Pump Pro V10.5 lcole 0 April 30th, 12:37 PM
Oracle Database and Oracle Fusion Middleware for Private Social Network Application lcole 0 April 30th, 12:31 PM
Oracle Database Maintains a Stronghold in the DBMS Market lcole 0 April 30th, 12:30 PM


















Thanks for your registration, follow us on our social networks to keep up-to-date