Sys.WebForms.PageRequestManager.ge
This may be your solution.
In the code behind for the UpdatePanel's OnLoad event, register a startup script.
string scriptText = "alert('Bar!');"; ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "foo", scriptText, true);