I basically have in my UpdatePanel a literal that generates a javascript array based on a method in my codebehind.
I don\'t have an issue when it comes to loading my
you can add the following code in Page_Load event:
ScriptManager.RegisterStartupScript(Me.rptGridAlbum, rptGridAlbum.GetType, "scriptname", "somejavascript", True)
This will fire the javascript on your page after the AJAX callback.
MSDN