Running Javascript After Update Panel Refresh
How do I load a javascript command (like an onload or onclick or something) after the update panel was just refreshed.
Solution 1:
ScriptManager.RegisterClientScriptBlock(upPanel, upPanel.GetType(), "alert('hello world')", true);
You must call this on partial postback.
Solution 2:
You could use ScriptManager. I'd think ScriptManager.RegisterClientScriptBlock should be useful. You can then execute JS after the page load. Other options include JQuery.live.
Post a Comment for "Running Javascript After Update Panel Refresh"