With AJAX enabled pages, you should use the ScriptManager to register scripts:
ScriptManager.RegisterClientScriptBlock(Page, typeof(MyPage),
"MyScript", "GoStuff()", true)
You can use this to register all your scripts (Original load, postback, AJAX postback).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…