Hi, I think you misunderstand why I add OnResolveScriptReference in there. I did use it to add any thing, I just add to try what js files are handled by it, if it includes the file I add in the usercontrol. Since in the dll I can tell in RegisterScript, it will call OnResolveScriptReference.
As in your last post, you are not sure if the add script works in all stages before Render, that is about to be right. What I want to confirm is if that is the case, my expience is it call RegisterScript before I add my usercontrol, I add my usercontrol in CreateChildControls, and add the ScriptReference in Page_Init of the usercontrol.
I am not creating a demo page, I had adjusted my site structure to work fine with the CTP, I can not just put the ScriptReference in a special stage, if I can do that, I will just add them in the ScriptManager.