Quote Originally Posted by vladimir View Post
Hi,

Each control registers own resources during rendering, so, full list of scripts is available after last control rendering
Therefore BuildScripts method is not so useful for you.
What about to place ResourcePlaceHolder at the end of the body (like in my test case)?
this.Page.Controls.AddAt(this.Page.Controls.Count-1, new ResourcePlaceHolder());
Thanks! That worked. I initially tried placing the resourceplaceholder BEFORE body but it didn't work for my specific scenario. So I tried rendering the scripts manually. Now, I went back and put the resourceplaceholder AFTER body like you suggested and it worked perfectly. Thanks for taking the time to fix/debug this issue.