|
When combining objectdatasource and gridview (the non-automatic paging used is a custom paging written by yourself), if the amount of data is very large, it may reach a thousand or so, and the number of paginated pages reaches dozens or hundreds (mine is 88) Page), when the pagination method is changed to numericfirstlast, when clicking the last page button, there will be an "Arithmetic operation caused an overflow" exception, and then after more than one hour of debugging, I found that the page was passed to GRIDVIEW after clicking the last page The number is 2147483647, which reaches the maximum value of Integer.
Then use ACCESSDATASOURCE as the data source, let gridview use its own paging, but found that everything is normal, and found that the value passed to GRIDVIEW is correct in the paging event.
I suspect it is a bug when GRIDVIEW is combined with OBJECTDATASOURCE, and it is most likely not related to my coding. Because no matter what data source I used, I didn't modify the loopback behavior after clicking the button on the last page at all.
Why is that? Has anyone encountered this situation?
Can masters test it? |
|