Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have above 50 lac records I want to show that records on page what is the best control show this records in page
please help me
Posted
Comments
Rockstar_ 25-Apr-13 0:46am    
Do you want to display all those 50lac records on a single page?
Rockstar_ 25-Apr-13 0:47am    
Use GridView with Paging...
Rockstar_ 25-Apr-13 0:47am    
Is all records are necessary to display?
Thanks7872 25-Apr-13 0:48am    
First of all,displaying 50 lac records at a time makes no sense. Figure out what the user wants and based on that display contents in controls like gridview. you can apply paging as well say 100 records per page. Further if you somehow manage to display all the records,then it will take more time to display this much records.

1 solution

Consider yourself a user of the site. Would you like to see 5 million records at a time? No one would. That is why the concept of paging was introduced.
Now choosing the control is based on your requirements. ASP.NET Data-Bound Web Server Controls Overview[^] - this page provides you brief overview of what each control can do. Choose from them based on your requirements. For example Repeater control is very light weight and does not have built-in layout. You can control the UI from the ground up.

Another important point is how you get the data from the database - all at once; only required data for each page; some number of records say 1000 and hit db again if user navigates further (Note - the no. of pages can be decided by getting the count of matching records). This decision is again very much based on your requirements. For example - if my data do not change frequently, I would get a lot of records or all of it at a go and save it into a Cache. If the records are same for all the users, I would even output Cache the page for some time.

So basically there are lot of design decisions that you need to make here. You haven't given much details so that's the best I can help. But I hope this shall get you started. :thumbsup:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900