Aspnetpager is a good paging control, but it has a bug. I use version 6.0:
When there is not one page of data, bind the page and enter a value in the jump page text box. The "Missing Object" JS error will pop up.
Or the first query is bound to less than one page. If the subsequent query is greater than one page, the same error occurs when you enter a value in the text box. The reason is that JS does not load Paging
The aspnetpager paging control lacks objects. The modification method is as follows:
OnSource codeThe first sentence of the onprerender (eventargs e) method in the aspnetpager. CS FileCode: Modify as follows:
Protected override void onprerender (eventargs E)
{
// If (this. pagecount> 1) & (this. showinputbox = webdatapager. showinputbox. always) | (this. showinputbox = webdatapager. showinputbox. auto) & (this. pagecount> = This. showboxthreshold) // This is the original
If (this. showinputbox = webdatapager. showinputbox. always) | (this. showinputbox = webdatapager. showinputbox. auto) & (this. pagecount> = This. showboxthreshold) // This is the modified
.........
}
Then perform the compilation test. OK. I hope it will help you.