Custom WebControl and State Managent of Dymanicly Added Controls
I want to build a custom server control (WebControl) that has a collection of business objects (Investors) as a public property. What I want to have happen is on the page level I set the collection equal to a collection retrieved from the database and then I call a public function (Build) on the user control.
When Build executes it iterates through the collection of Investors and adds textbox controls to the Controls collection. My problem is is that I keep losing these controls on postback. I need to have these controls and their values be maintained across postbacks and I can't figure out how to do this with dynamically added controls NOT templated controls.