m-u
9/16/2013 - 10:47 PM

Bind javascript funtions after ajax postback

Bind javascript funtions after ajax postback

function BindEvents()
{
    // Here your js function calls go
}

var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(BindEvents);

--- OR---

var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
    prm.add_endRequest(function (sender, e) {
        if (sender._postBackSettings.panelsToUpdate != null) {
            BindEvents();
        }
    });
};