I have a 4 step wizard. Step 1 asks a user to enter a test (exam) question and then asks them to choose how many answers to create. Step 2 of the wizard will then generate the neccasarry number of TextBox's, as per the quantity entered by the user.
Now on step 3 of the wizard, I have access to the answers only via the 'Request' collection but not via the control tree. No doubt becuase the answer TextBoxes are no longer part of the control tree due to them being built only once.
My first thoughts were to create a hidden field of some kind (or use view state), and store all answers in this control. This control would then be around for step 4 of the wizard, where I then do something with the data accumulated across all wizard steps.
Two questions - am I solving this problem correctly? It seems rather awkward to be a good solution. And, are there any pointers or good resources for working with dynamically generated controls. I don't quite get why such a great feature would have such a limitation - when I submit my dynamic controls I want to be able to see them as controls on the server and not have to use 'Request' object.