Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Partitioned Fetching Records by Dataset or DataTablePartitioned Fetching Records by Dataset or DataTable
Previous
 
Next
New Post
8/16/2010 7:10 AM
 

Hi ALL,

            I  have 1Lakh records in a  table called 'Employee'.Now i am going to display those records in a Gridview with the help of datatable or dataset.(this is the query:select empid,empname,empage from employee).I have enabled Paging and my page size is to display only 1000 in 1st page and another 1000 page in 2nd page....etc option.

I am using Sql server DB.

My problem is :

* All the my 1lakh records are fetched in the Datatable or Dataset once my page loads.So,performance speed gone in very very bad.

My requierment is :

* I am displaying only 1000 records in the 1st page index .So i would like to fetch only these 1000 records in my Datatable or dataset.
Once i went to next page,then only those 1000 records will be populated in the Datatable.

How can we acheive this?Please its very very urgent

NOTE:There is no Where Condition in my Sql Query.

Please give me some suggestions

 

 
New Post
8/16/2010 10:25 AM
 
I followed the article http://www.4guysfromrolla.com/article... to program the database paging.   Give it a try.

Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Partitioned Fetching Records by Dataset or DataTablePartitioned Fetching Records by Dataset or DataTable


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out