Last active
October 16, 2018 10:25
-
-
Save umair-me/6587647 to your computer and use it in GitHub Desktop.
Bind javascript funtions after ajax postback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment