Client-Side Script After UpdatePanel Refresh

How to run client-side javascript after running an UpdatePanel refresh

In ASP.Net, the <asp:UpdatePanel> allows us a quick an easy way to refresh screen content with server-side changes without the need for a full page post-back.

It is very useful to be able to run javascript on the client once the refresh has happened, and this can be achieved using the following code...

If ScriptManager.GetCurrent(Page).IsInAsyncPostBack Then
    Dim script as string = "callFunction();"
    ScriptManager.RegisterStartupScript(Me.Page,
        Me.Page.GetType(), "script", script, True)
End If
Added 29/06/2018 12:40