Last post Aug 21, 2008 06:16 PM by jkirkerx
Aug 20, 2008 12:45 PM|jibber|LINK
I have a compositecontrol that consists of a number of compositecontrols. When the page postbacks I need to re-create the controls so that Viewstate can do it's bit. The problem is that at OnPreInit I cannot get the number of controls that should be created,
can anybody give me an idea on how I can find out/pass how many controls should be created.
Aug 21, 2008 06:16 PM|jkirkerx|LINK
It's PreInit, that controls don't exist yet!. There's nothing to count, the controls don't exist.
See this post and use the example anwser as a template for your control. Then all of your values will stay on postback