bind the jquery event handler handler inside the following function
function pageLoad(sender,args) { // binding code here, for example $('#button').click(function(e) { // do something when the click event is raised }); }
pageLoad is executed after each postback, synchronous or asynchronous. pageLoad is the reserved function name in ASP.NET AJAX designed for this purpose. $(document).ready() , on the other hand, is executed only once when the DOM is initially ready / loaded.
See ASP.NET AJAX Client Life Cycle Overview
Russ cam
source share