Last post May 28, 2012 06:49 AM by anitsolution
May 24, 2012 03:55 AM|sarvesh1981|LINK
I have gridview to show item list with apprx 2500 rows and 15 columns on my page.
I have used paging at this page.
First time i fetch only 10 records and after that i click on Home link then it goes in right way.
Next time i fetch 10 records after that i select all records to show. it shows all records in grid view after that i click on Home link then it gives error. This error states that
"Operation is not valid due to current state of object"
For solving this issue, i added a line in web.config to increase the value of MaxHTTPCollectionKeys. First time I set value to 2000 then this error comes again, next time i increased to 5000, it is resolved but after some time it gives login failure error
each time. When i decrease value then login success but above error is coming again.
What is the solution for this? Please give me any solution.
May 28, 2012 06:49 AM|anitsolution|LINK
Seems you need to show thousands of row on second request.
As an alternate you can load data on scrool like FaceBook.
Try the above solution that will help you to load data on demand.