Geek Articles

Categories

 

Subscribe

Daily Updates Subscribe geekarticles update via email Subscribe geekarticles update via RSS

 
GeekArticles Database SQL Server

Filtering Custom Paged Results

Author: aspnet.4guysfromrolla.com | Published: 4th Apr 2007 | Visited: 154 times | Add Comment
Filed in: SQL Server

The ASP.NET 2.0 data web controls - the GridView, DetailsView, and FormView - all provide built-in paging support that can be enabled at the tick of a checkbox. Unfortunately, this built-in paging support is very inefficient when paging through large amounts of data since it naively grabs all of the records from the data being paged through even though only a subset of the records are displayed. Consequently, when paging through several hundred or thousands of records, it behooves you to implement custom paging. With custom paging, the data Web control hands over its paging responsibilities to us, the page developer. We are tasked with efficiently grabbing the precise subset of records to display and providing this information to the data Web control. Previous articles here on 4Guys have looked at implementing custom paging in ASP.NET 2.0. In Custom Paging in ASP.NET 2.0 with SQL Server 2005 we looked at using a GridView, a Typed DataSets, an ObjectDataSource control, and SQL Server 2005's new ROW_NUMBER() keyword to efficiently page through 50,000 records 10 at a time. Another article, Sorting Custom Paged Results, looked at a technique for efficiently sorting the custom paged results. In addition to paging and sorting, another common data request is filtering. When using the inefficient default paging, filtering is easy to implement but includes the same inherent inefficiencies: the data Web control retrieves all of the filtered records even though only a subset of them are displayed on each page. It is possible to implement filtering with custom paging and sorting, however. In this article we will look at extending the custom paging and sorting example - which currently pages and sorts through the 50,000 employees in a fictional company - to include the ability to filter the displayed employees by their department. Read on to learn more! Before tackling this article make sure you have read and worked through Custom Paging in ASP.NET 2.0 with SQL Server 2005 and Sorting Custom Paged Results...Read More >

Read Article
 

Sponsored Links

 


Related Articles

 Custom controls with MonoDevelop and Gtk# Movable controls with customized rendering on Linux with ...

 .NET Building Blocks: Custom User Control Fundamentals Find out the gritty details required to create, test, use, inherit, install, and distribute .NET User Controls of all ty ...

 SharePoint Custom Site Navigation This articles provides an overview on how to do customized site navigation on MOSS publishing si ...

 Add Custom Configuration Sections into a Separate web.config This article introduces a tip of how to add your custom configuration sections in ?another? web.co ...

 Building a Visual Studio DebuggerVisualizer with a Custom Serializer For most any Serializeable object, making a DebuggerVisualizer is exceeding simple and examples abound. However, if you are trying to build a DebuggerVisualizer for an object which is not Serializable or takes too long to Serialize and Deserialize, things are not quite so simp ...

 GridView Custom Paging with PageSize Change Dropdown A GridView control with custom pag ...

 Custom PHPBB3 Login, returing XML This will allow you to login to phpbb3 from your site, and get the user data to manipu ...

 Navigation Custom Control for Microsoft Office SharePoint Server (MOSS) Renders navigational nodes using list t ...

 Custom Styled Checkboxes A JavaScript widget to customize the look and feel of check b ...

 Use Custom Check Box Images for a ListView - Delphi 's TListView Checkboxes are Ugly in Delphi TIPS :: When the ViewStyle property of a TListView Delphi control is set to vsReport and CheckBoxes is set to true, list view includes a check box nex ...



Next: Idera Simplifies SQL Server Backup and Recovery Management With SQLsafe 4.0



Post Comment

Name:


Email:
 (Optional. Used for Notification)

Title:

 
Comment:


Validation Code:
 <=>  (Enter this code in text box)





Latest Articles

 

Popular Articles

Sponsored Links