Hi,
I am trying to create a dynamic menu and have been trying to add linkbuttons dynamically as I generate it.
I started by adding the linkbuttons as I created the menu structure but I found that the linkbutton events wouldn't fire unless created in the Page_Init.
Then I found that I was having problems with the dynamic display of submenu links happening after the page_init which meant that their events wouldn't fire.
So now as a last resort and more out of stubborness than anything else, I want to create all of the linkbuttons in the Page_Init and then add the linkbuttons to the relevant placeholders at a later stage when contructing the menu.
I hope that makes sense.
So now to the question! I am creating the Linkbuttons in Page_Init like this:
LinkButton LB = Go to the complete details ...