If I got you right I should call the loadDynamically function before the Page_Load event. I tried to call the function on PreLoad InitComplete Init and got the same result. However when I tried PreInit it shouted an error of PlaceHolder1 is null.