As it states:
Quote:Controls are typically added to the page during the page's initialization stage. For details about page stages, see ASP.NET Page Life Cycle Overview.
You adding this during PageLoad. Events are registered earlier.
So they are working after second time when controls were added to page and events registered.