No need to use the project to refresh the page AspNetPager itself provides the only support Microsoft's ajax ajaxtools, then change hands a little bit, because it is the first edition might be a little sorry.
Code
<
Script
>
// item category ID var classID = null ; $ ( function () { the Init (); } ); function the Init () { // process the paging controls $ ( " # AspNetPager1 " ) .children ( " A " ) .each ( function (index, Element) { $ (Element) .unbind ( " the Click " ); IF (element.href ! = "" ) { //
Get paging buttons hyperlink var Link = element.href; // Alert (classID); // page click submit events to connect with ajax $ (Element) .bind ( " the Click " , function () { $ .ajax ({ type: " GET " , Cache: to false , URL: Link, dataType: " HTML " , Success: function (MSG) { $ ( ' #showForm ' ) .html ($ (MSG) .filter ( ' #showForm '
) .html ())
// $ (the Document) .unbind ( "the Click");
// new data loaded again processing the Init (); } }); }); } // make a hyperlink to jump does not occur turn element.href = " # " ; }); } < / Script>
Get paging buttons hyperlink var Link = element.href; // Alert (classID); // page click submit events to connect with ajax $ (Element) .bind ( " the Click " , function () { $ .ajax ({ type: " GET " , Cache: to false , URL: Link, dataType: " HTML " , Success: function (MSG) { $ ( ' #showForm ' ) .html ($ (MSG) .filter ( ' #showForm '
) .html ())
// $ (the Document) .unbind ( "the Click");
// new data loaded again processing the Init (); } }); }); } // make a hyperlink to jump does not occur turn element.href = " # " ; }); } < / Script>
Reproduced in: https: //www.cnblogs.com/tufan/archive/2009/12/22/1629634.html