Maintaining state for dynamically created controls
As the Subject mentions, I'm creating a control at runtime (ie can be one
of several - which I don't know at design time), and all it working well.
Except that on a page postback all viewstate is lost. Well I know its not
really lost as I believe its still part of the viewstate, however as the
control is created after the viewstate processing its not used.
So the question becomes what is the best what of handling dynamic control
creation while maintaining its state?
Any help in this regard would be much appreciated.
Technical Leader - Solutions
T: +44 (0) 208 543 5353
F: +44 (0) 208 545 6511
Parity Solutions Ltd, 1 Hartfield Rd
Wimbledon SW19 3RU
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL