Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

If a table contains 20000 records . In a page at each time
100 records to be displayed. What are the steps u will take
to improve performance? will you use dataset or datareader?

Answer Posted / kumar vaibhav

Create a stored procedure with parameter page size and current page index.Get the lower bound and upper bound of the page by using following formula

Lower bound=Pagesize*PageIndex+1
Upper Bound=lowerbound+pagesize

call this Stored Procedure on every paging event of gridview.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bubbled event can you please explain?

1108


Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

920


Which is faster entity framework or ado.net?

968


What are the connected and disconnected modes in ado.net?

968


What are the important features of ado.net 2.0?

1116


Define partial class?

1027


What is data relation in ado.net?

1141


What is basic use of data view?

1044


What providers does Ado.net uses?

1066


What is the difference between ado.net and entity framework?

1099


What are ado.net objects?

1204


What are the usages of the command object in ado.net?

1073


What are all the different authentication techniques used to connect to MS SQL Server?

1138


What is linq and entity framework?

1070


What is ado connection?

1013