code_junkie

How do I run client script after a postback?

Nov 12th, 2011
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ScriptManager.RegisterClientScriptBlock(
  2. this,
  3. typeof( MyList ),
  4. "blah",
  5. "DraggifyLists();",
  6. true );
  7.  
  8. function addRequestHandler()
  9. {
  10. Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler);
  11. }
  12.  
  13.  
  14. function endRequestHandler(sender, args)
  15. {
  16. // This function will be called after the postback has completed
  17.  
  18. // add your JavaScript function call here
  19. }
Add Comment
Please, Sign In to add comment