ASP.NET AJAX - send script from server to run immediately on page after partial page postback
Posted on 2011-02-17
I've got an update panel on a page that loads information on a button click. During the postback to the server I would like to be able to pass a script back down to the client to run as soon as the update panel finishes it's update.
I've tried using this so far in the button click event
ClientScript.RegisterStartupScript(this.GetType(), "HideCustomLoadingIndicator", "HideCustomLoadingIndicator();", true);