Dynamically loaded controls in ASP.NET

Every time I've embarked on ASP.NET projects the dynamically loaded controls have been the big bad wolf. I always seem to loose track of load and reload and state somewhere along the way. A few weeks ago I searched for a containercontrol that handeled this issue and only found a dead link to a component by Denis Bauer.

Yesterday I had enough and created an extended Panel that could handle dynamic addition and removal of UserControls, a DynamicUserControlPanel (soon to show up at my GDN samples).

I headed off to GotDotNet to upload the control to my samples, and did a quick search for similar controls. Of course Denis Bauer had added his control to User Samples and it's simply great! Denis control does more than mine in supporting all dynamically added controls, not just UserControls. This kinda took away some of the joy in making my control work.

I uploaded it anyway convincing myself that my solution is simpler and therefore more reliable when the only need is to add UserControls. Probably I should be satisfied with having a better understanding for ASP.NET state handling, and credit the last 15 workhours to that instead.

I'll extend my AGBYA (Always Google Before You Ask) with a AGIBYC (Always Google Immediately Before You Code).

2 Comments

  • I'll extend my AGBYA (Always Google Before You Ask) with a AGIBYC (Always Google Immediately Before You Code) <<<



    You got that right :-) am in a similar situation at the moment and Google sent me to your page. I'll try out the components. I hope they solve my problem :)

  • i can't download,why?

Comments have been disabled for this content.