Adding Dynamic User Controls tab panel PlaceHolder
Posted on 2010-01-04
I have a website that has numerous tab panels, each of which contains a PlaceHolder. My end result would ideally be that as only one tab panel is available for viewing at any one time, that only 1 user control is loaded into the relevent PlaceHolder (ie on the current ActiveTab). I do not want to load a usercontrol into each PlaceHolder as this will take processing time and is not necessary seeing as only 1 user control is viewable at any one time. The usercontrol has a formview and a gridview on it. I know i can add the user control to the placeholder with an explicit ID using LoadControl in the Page_Init event, but as said, the problem is that i only want 1 user control to load... and be responsive to the formview saves.