asp.net - call javascript after updatepanel postback -


i put following javascript code inline doesn't trigger after updatepanel done postback:

function endrequesthandler(sender, args) { alert("this should work"); } sys.webforms.pagerequestmanager.getinstance().add_endrequest(endrequesthandler); 

any ideas?

thanks.

ok, nevermind, got it. if else runs problem, put sys.webforms..... line this:

$(document).ready( function () { sys.webforms....; } 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -