HowTo: Launch JavaScript after async postback of UpdatePanel
1 min read
1 min read
ScriptManager.RegisterStartupScript(...)
method.ScriptManager.RegisterStartupScript(btnSave, this.GetType(), "myScriptKey", "myFunction()", true);The only thing I found that people misdo is to not specify the correct instance (1st parameter) that caused the asynchronous postback to fire and thus the UpdatePanel to do the postback. In such a case it will just fail silently.