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

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

613


What are the drawbacks of using ado.net?

543


Why is stored procedure used in ado.net?

549


What is DataRowCollection?

625


What is difference between ado.net and asp net?

512






What is a datagridview?

516


What is variable view?

497


What are the parameters that control most of connection pooling behaviors?

515


What is shadow copy?

578


How we can provide data to ado.net?

545


What is Dataset Object?

561


What is sqldatasource?

523


What is difference between Dataview and Datatable?

528


What is meant by ‘transaction’ in a database and what are the ‘properties of transaction’?

532


What is aggregating data ?

511